#include <android_context_gl_skia.h>
Public Member Functions | |
| AndroidContextGLSkia (fml::RefPtr< AndroidEnvironmentGL > environment, const TaskRunners &taskRunners) | |
| ~AndroidContextGLSkia () | |
| std::unique_ptr< AndroidEGLSurface > | CreateOnscreenSurface (const fml::RefPtr< AndroidNativeWindow > &window) const |
| Allocates an new EGL window surface that is used for on-screen pixels. | |
| std::unique_ptr< AndroidEGLSurface > | CreateOffscreenSurface () const |
| Allocates an 1x1 pbuffer surface that is used for making the offscreen current for texture uploads. | |
| std::unique_ptr< AndroidEGLSurface > | CreatePbufferSurface () const |
| Allocates an 1x1 pbuffer surface that is used for making the onscreen context current for snapshotting. | |
| fml::RefPtr< AndroidEnvironmentGL > | Environment () const |
| bool | IsValid () const override |
| bool | ClearCurrent () const |
| EGLContext | GetEGLContext () const |
| Returns the EGLContext. | |
| EGLDisplay | GetEGLDisplay () const |
| Returns the EGLDisplay. | |
| EGLContext | CreateNewContext () const |
| Create a new EGLContext using the same EGLConfig. | |
| EGLConfig | Config () const |
| The EGLConfig for this context. | |
Public Member Functions inherited from flutter::AndroidContext | |
| AndroidContext (AndroidRenderingAPI rendering_api) | |
| virtual | ~AndroidContext () |
| virtual AndroidRenderingAPI | RenderingApi () const |
| virtual bool | IsDynamicSelection () const |
| void | SetMainSkiaContext (const sk_sp< GrDirectContext > &main_context) |
| Setter for the Skia context to be used by subsequent AndroidSurfaces. | |
| sk_sp< GrDirectContext > | GetMainSkiaContext () const |
| Accessor for the Skia context associated with AndroidSurfaces and the raster thread. | |
| virtual std::shared_ptr< impeller::Context > | GetImpellerContext () const |
| Accessor for the Impeller context associated with AndroidSurfaces and the raster thread. | |
| virtual void | SetupImpellerContext () |
| Perform deferred setup for the impeller Context. | |
Additional Inherited Members | |
Protected Member Functions inherited from flutter::AndroidContext | |
| void | SetImpellerContext (const std::shared_ptr< impeller::Context > &impeller_context) |
The Android context is used by AndroidSurfaceGL to create and manage EGL surfaces.
This context binds EGLContext to the current rendering thread and to the draw and read EGLSurfaces.
Definition at line 28 of file android_context_gl_skia.h.
| flutter::AndroidContextGLSkia::AndroidContextGLSkia | ( | fml::RefPtr< AndroidEnvironmentGL > | environment, |
| const TaskRunners & | taskRunners | ||
| ) |
Definition at line 63 of file android_context_gl_skia.cc.
References flutter::ChooseEGLConfiguration(), flutter::CreateContext(), FML_LOG, and flutter::LogLastEGLError().
| flutter::AndroidContextGLSkia::~AndroidContextGLSkia | ( | ) |
Definition at line 105 of file android_context_gl_skia.cc.
References FML_DCHECK, flutter::AndroidContext::GetMainSkiaContext(), flutter::TaskRunners::GetPlatformTaskRunner(), flutter::TaskRunners::GetRasterTaskRunner(), fml::TaskRunner::RunNowOrPostTask(), fml::TaskRunner::RunsTasksOnCurrentThread(), flutter::AndroidContext::SetMainSkiaContext(), and fml::AutoResetWaitableEvent::Signal().
| bool flutter::AndroidContextGLSkia::ClearCurrent | ( | ) | const |
Definition at line 187 of file android_context_gl_skia.cc.
References FML_LOG, and flutter::LogLastEGLError().
|
inline |
The EGLConfig for this context.
Definition at line 101 of file android_context_gl_skia.h.
| EGLContext flutter::AndroidContextGLSkia::CreateNewContext | ( | ) | const |
Create a new EGLContext using the same EGLConfig.
Definition at line 208 of file android_context_gl_skia.cc.
| std::unique_ptr< AndroidEGLSurface > flutter::AndroidContextGLSkia::CreateOffscreenSurface | ( | ) | const |
Allocates an 1x1 pbuffer surface that is used for making the offscreen current for texture uploads.
Definition at line 157 of file android_context_gl_skia.cc.
References surface.
| std::unique_ptr< AndroidEGLSurface > flutter::AndroidContextGLSkia::CreateOnscreenSurface | ( | const fml::RefPtr< AndroidNativeWindow > & | window | ) | const |
Allocates an new EGL window surface that is used for on-screen pixels.
Definition at line 140 of file android_context_gl_skia.cc.
| std::unique_ptr< AndroidEGLSurface > flutter::AndroidContextGLSkia::CreatePbufferSurface | ( | ) | const |
Allocates an 1x1 pbuffer surface that is used for making the onscreen context current for snapshotting.
Definition at line 169 of file android_context_gl_skia.cc.
References surface.
| fml::RefPtr< AndroidEnvironmentGL > flutter::AndroidContextGLSkia::Environment | ( | ) | const |
Definition at line 179 of file android_context_gl_skia.cc.
| EGLContext flutter::AndroidContextGLSkia::GetEGLContext | ( | ) | const |
Returns the EGLContext.
Definition at line 200 of file android_context_gl_skia.cc.
| EGLDisplay flutter::AndroidContextGLSkia::GetEGLDisplay | ( | ) | const |
Returns the EGLDisplay.
Definition at line 204 of file android_context_gl_skia.cc.
|
overridevirtual |
Reimplemented from flutter::AndroidContext.
Definition at line 183 of file android_context_gl_skia.cc.