Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
android
surface
android_surface_mock.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "flutter/shell/platform/android/surface/android_surface_mock.h"
6
7
namespace
flutter
{
8
9
std::unique_ptr<GLContextResult>
AndroidSurfaceMock::GLContextMakeCurrent
() {
10
return
std::make_unique<GLContextDefaultResult>(
/*static_result=*/
true
);
11
}
12
13
bool
AndroidSurfaceMock::GLContextClearCurrent
() {
14
return
true
;
15
}
16
17
bool
AndroidSurfaceMock::GLContextPresent
(
const
GLPresentInfo
& present_info) {
18
return
true
;
19
}
20
21
GLFBOInfo
AndroidSurfaceMock::GLContextFBO
(
GLFrameInfo
frame_info)
const
{
22
return
GLFBOInfo
{
23
.
fbo_id
= 0,
24
};
25
}
26
27
}
// namespace flutter
flutter::AndroidSurfaceMock::GLContextPresent
bool GLContextPresent(const GLPresentInfo &present_info) override
Definition
android_surface_mock.cc:17
flutter::AndroidSurfaceMock::GLContextClearCurrent
bool GLContextClearCurrent() override
Definition
android_surface_mock.cc:13
flutter::AndroidSurfaceMock::GLContextMakeCurrent
std::unique_ptr< GLContextResult > GLContextMakeCurrent() override
Definition
android_surface_mock.cc:9
flutter::AndroidSurfaceMock::GLContextFBO
GLFBOInfo GLContextFBO(GLFrameInfo frame_info) const override
Definition
android_surface_mock.cc:21
flutter
Definition
asset_manager.cc:10
flutter::GLFBOInfo
Definition
gpu_surface_gl_delegate.h:27
flutter::GLFBOInfo::fbo_id
uint32_t fbo_id
Definition
gpu_surface_gl_delegate.h:29
flutter::GLFrameInfo
Definition
gpu_surface_gl_delegate.h:20
flutter::GLPresentInfo
Definition
gpu_surface_gl_delegate.h:35
Generated on Fri Apr 26 2024 06:14:21 for Flutter Engine by
1.9.8