#include <gpu_surface_gl_skia.h>
Public Member Functions | |
| GPUSurfaceGLSkia (GPUSurfaceGLDelegate *delegate, bool render_to_surface) | |
| GPUSurfaceGLSkia (const sk_sp< GrDirectContext > &gr_context, GPUSurfaceGLDelegate *delegate, bool render_to_surface) | |
| ~GPUSurfaceGLSkia () override | |
| bool | IsValid () override |
| std::unique_ptr< SurfaceFrame > | AcquireFrame (const DlISize &size) override |
| DlMatrix | GetRootTransformation () const override |
| GrDirectContext * | GetContext () override |
| std::unique_ptr< GLContextResult > | MakeRenderContextCurrent () override |
| bool | ClearRenderContext () override |
| bool | AllowsDrawingWhenGpuDisabled () const override |
Public Member Functions inherited from flutter::Surface | |
| Surface () | |
| virtual | ~Surface () |
| virtual bool | EnableRasterCache () const |
| virtual std::shared_ptr< impeller::AiksContext > | GetAiksContext () const |
| virtual SurfaceData | GetSurfaceData () const |
Static Public Member Functions | |
| static sk_sp< GrDirectContext > | MakeGLContext (GPUSurfaceGLDelegate *delegate) |
Definition at line 23 of file gpu_surface_gl_skia.h.
| flutter::GPUSurfaceGLSkia::GPUSurfaceGLSkia | ( | GPUSurfaceGLDelegate * | delegate, |
| bool | render_to_surface | ||
| ) |
Definition at line 68 of file gpu_surface_gl_skia.cc.
| flutter::GPUSurfaceGLSkia::GPUSurfaceGLSkia | ( | const sk_sp< GrDirectContext > & | gr_context, |
| GPUSurfaceGLDelegate * | delegate, | ||
| bool | render_to_surface | ||
| ) |
Definition at line 74 of file gpu_surface_gl_skia.cc.
References FML_LOG, flutter::GPUSurfaceGLDelegate::GLContextClearCurrent(), and flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent().
|
override |
Definition at line 93 of file gpu_surface_gl_skia.cc.
References FML_LOG, flutter::GPUSurfaceGLDelegate::GLContextClearCurrent(), and flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent().
|
overridevirtual |
Implements flutter::Surface.
Definition at line 213 of file gpu_surface_gl_skia.cc.
References flutter::SurfaceFrame::FramebufferInfo::existing_damage, FML_LOG, GetRootTransformation(), flutter::GPUSurfaceGLDelegate::GLContextFramebufferInfo(), flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent(), flutter::size, flutter::SurfaceFrame::FramebufferInfo::supports_readback, surface, flutter::ToSkM44(), and TRACE_EVENT0.
|
overridevirtual |
Reimplemented from flutter::Surface.
Definition at line 352 of file gpu_surface_gl_skia.cc.
References flutter::GPUSurfaceGLDelegate::AllowsDrawingWhenGpuDisabled().
|
overridevirtual |
Reimplemented from flutter::Surface.
Definition at line 347 of file gpu_surface_gl_skia.cc.
References flutter::GPUSurfaceGLDelegate::GLContextClearCurrent().
|
overridevirtual |
Implements flutter::Surface.
Definition at line 337 of file gpu_surface_gl_skia.cc.
|
overridevirtual |
Implements flutter::Surface.
Definition at line 208 of file gpu_surface_gl_skia.cc.
References flutter::GPUSurfaceGLDelegate::GLContextSurfaceTransformation().
Referenced by AcquireFrame().
|
overridevirtual |
Implements flutter::Surface.
Definition at line 115 of file gpu_surface_gl_skia.cc.
|
static |
Definition at line 42 of file gpu_surface_gl_skia.cc.
References FML_LOG, flutter::PersistentCache::GetCacheForProcess(), flutter::GPUSurfaceGLDelegate::GetGLInterface(), flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent(), flutter::kGrCacheMaxByteSize, flutter::kRender, flutter::MakeDefaultContextOptions(), and flutter::PersistentCache::PrecompileKnownSkSLs().
Referenced by flutter::AndroidSurfaceGLSkia::CreateGPUSurface(), and flutter::AndroidSurfaceGLSkia::CreateSnapshotSurface().
|
overridevirtual |
Reimplemented from flutter::Surface.
Definition at line 342 of file gpu_surface_gl_skia.cc.
References flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent().