Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
7namespace flutter {
8
9std::unique_ptr<GLContextResult> AndroidSurfaceMock::GLContextMakeCurrent() {
10 return std::make_unique<GLContextDefaultResult>(/*static_result=*/true);
11}
12
14 return true;
15}
16
18 return true;
19}
20
22 return GLFBOInfo{
23 .fbo_id = 0,
24 };
25}
26
27} // namespace flutter
bool GLContextPresent(const GLPresentInfo &present_info) override
std::unique_ptr< GLContextResult > GLContextMakeCurrent() override
GLFBOInfo GLContextFBO(GLFrameInfo frame_info) const override