Flutter Engine
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 
14  return true;
15 }
16 
17 bool AndroidSurfaceMock::GLContextPresent(uint32_t fbo_id) {
18  return true;
19 }
20 
21 intptr_t AndroidSurfaceMock::GLContextFBO(GLFrameInfo frame_info) const {
22  return 0;
23 }
24 
26  return nullptr;
27 }
28 
29 } // namespace flutter
bool GLContextPresent(uint32_t fbo_id) override
intptr_t GLContextFBO(GLFrameInfo frame_info) const override
std::unique_ptr< GLContextResult > GLContextMakeCurrent() override
ExternalViewEmbedder * GetExternalViewEmbedder() override
Gets the view embedder that controls how the Flutter layer hierarchy split into multiple chunks shoul...