[go: up one dir, main page]

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/flow/surface.h"
6
7namespace flutter {
8
9Surface::Surface() = default;
10
11Surface::~Surface() = default;
12
13std::unique_ptr<GLContextResult> Surface::MakeRenderContextCurrent() {
14 return std::make_unique<GLContextDefaultResult>(args: true);
15}
16
17bool Surface::ClearRenderContext() {
18 return false;
19}
20
21bool Surface::AllowsDrawingWhenGpuDisabled() const {
22 return true;
23}
24
25bool Surface::EnableRasterCache() const {
26 return true;
27}
28
29std::shared_ptr<impeller::AiksContext> Surface::GetAiksContext() const {
30 return nullptr;
31}
32
33Surface::SurfaceData Surface::GetSurfaceData() const {
34 return {};
35}
36
37} // namespace flutter
38

source code of flutter_engine/flutter/flow/surface.cc