Flutter Engine
 
Loading...
Searching...
No Matches
gpu_surface_gl_impeller.h
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#ifndef FLUTTER_SHELL_GPU_GPU_SURFACE_GL_IMPELLER_H_
6#define FLUTTER_SHELL_GPU_GPU_SURFACE_GL_IMPELLER_H_
7
10#include "flutter/fml/macros.h"
15
16namespace flutter {
17
18class GPUSurfaceGLImpeller final : public Surface {
19 public:
21 std::shared_ptr<impeller::Context> context,
22 bool render_to_surface);
23
24 // |Surface|
26
27 // |Surface|
28 bool IsValid() override;
29
30 private:
31 GPUSurfaceGLDelegate* delegate_ = nullptr;
32 std::shared_ptr<impeller::Context> impeller_context_;
33 bool render_to_surface_ = true;
34 std::shared_ptr<impeller::AiksContext> aiks_context_;
35 bool is_valid_ = false;
37
38 // |Surface|
39 std::unique_ptr<SurfaceFrame> AcquireFrame(const DlISize& size) override;
40
41 // |Surface|
42 DlMatrix GetRootTransformation() const override;
43
44 // |Surface|
45 GrDirectContext* GetContext() override;
46
47 // |Surface|
48 std::unique_ptr<GLContextResult> MakeRenderContextCurrent() override;
49
50 // |Surface|
51 bool ClearRenderContext() override;
52
53 // |Surface|
54 bool AllowsDrawingWhenGpuDisabled() const override;
55
56 // |Surface|
57 bool EnableRasterCache() const override;
58
59 // |Surface|
60 std::shared_ptr<impeller::AiksContext> GetAiksContext() const override;
61
63};
64
65} // namespace flutter
66
67#endif // FLUTTER_SHELL_GPU_GPU_SURFACE_GL_IMPELLER_H_
Abstract Base Class that represents where we will be rendering content.
Definition surface.h:26
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
A 4x4 matrix using column-major storage.
Definition matrix.h:37