Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
surface.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/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>(true);
15}
16
18 return false;
19}
20
22 return true;
23}
24
26 return true;
27}
28
29std::shared_ptr<impeller::AiksContext> Surface::GetAiksContext() const {
30 return nullptr;
31}
32
36
37} // namespace flutter
virtual bool EnableRasterCache() const
Definition surface.cc:25
virtual bool AllowsDrawingWhenGpuDisabled() const
Definition surface.cc:21
virtual SurfaceData GetSurfaceData() const
Definition surface.cc:33
virtual ~Surface()
virtual bool ClearRenderContext()
Definition surface.cc:17
virtual std::shared_ptr< impeller::AiksContext > GetAiksContext() const
Definition surface.cc:29
virtual std::unique_ptr< GLContextResult > MakeRenderContextCurrent()
Definition surface.cc:13
A screenshot of the surface's raw data.
Definition surface.h:27