5#ifndef FLUTTER_SHELL_GPU_GPU_SURFACE_GL_SKIA_H_
6#define FLUTTER_SHELL_GPU_GPU_SURFACE_GL_SKIA_H_
11#include "flutter/common/graphics/gl_context_switch.h"
12#include "flutter/flow/embedded_views.h"
13#include "flutter/flow/surface.h"
14#include "flutter/fml/macros.h"
15#include "flutter/fml/memory/weak_ptr.h"
16#include "flutter/shell/gpu/gpu_surface_gl_delegate.h"
32 bool render_to_surface);
62 const SkISize& untransformed_size,
63 const SkMatrix& root_surface_transformation);
75 std::optional<SkIRect> existing_damage_ = std::nullopt;
76 bool context_owner_ =
false;
81 const bool render_to_surface_ =
true;
Developer-facing API for rendering anything within the engine.
GrDirectContext * GetContext() override
bool AllowsDrawingWhenGpuDisabled() const override
SkMatrix GetRootTransformation() const override
bool ClearRenderContext() override
static sk_sp< GrDirectContext > MakeGLContext(GPUSurfaceGLDelegate *delegate)
GPUSurfaceGLSkia(GPUSurfaceGLDelegate *delegate, bool render_to_surface)
~GPUSurfaceGLSkia() override
std::unique_ptr< GLContextResult > MakeRenderContextCurrent() override
std::unique_ptr< SurfaceFrame > AcquireFrame(const SkISize &size) override
Abstract Base Class that represents where we will be rendering content.
it will be possible to load the file into Perfetto s trace viewer 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