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