5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_GL_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_GL_IMPELLER_H_
21 const std::shared_ptr<AndroidContextGLImpeller>& android_context);
31 GrDirectContext* gr_context)
override;
48 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade)
override;
78 std::shared_ptr<AndroidContextGLImpeller> android_context_;
79 std::unique_ptr<impeller::egl::Surface> onscreen_surface_;
80 std::unique_ptr<impeller::egl::Surface> offscreen_surface_;
83 bool is_valid_ =
false;
85 bool OnGLContextMakeCurrent();
87 bool RecreateOnscreenSurfaceAndMakeOnscreenContextCurrent();
SurfaceFrame::FramebufferInfo GLContextFramebufferInfo() const override
bool ResourceContextMakeCurrent() override
bool ResourceContextClearCurrent() override
void TeardownOnScreenContext() override
bool SetNativeWindow(fml::RefPtr< AndroidNativeWindow > window, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade) override
sk_sp< const GrGLInterface > GetGLInterface() const override
bool GLContextClearCurrent() override
bool GLContextPresent(const GLPresentInfo &present_info) override
void GLContextSetDamageRegion(const std::optional< DlIRect > ®ion) override
~AndroidSurfaceGLImpeller() override
GLFBOInfo GLContextFBO(GLFrameInfo frame_info) const override
bool IsValid() const override
std::shared_ptr< impeller::Context > GetImpellerContext() override
std::unique_ptr< GLContextResult > GLContextMakeCurrent() override
std::unique_ptr< Surface > CreateSnapshotSurface() override
std::unique_ptr< Surface > CreateGPUSurface(GrDirectContext *gr_context) override
bool OnScreenSurfaceResize(const DlISize &size) override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
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