Flutter Engine
The Flutter Engine
|
#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. More... | |
std::unique_ptr< AndroidEGLSurface > | CreateOffscreenSurface () const |
Allocates an 1x1 pbuffer surface that is used for making the offscreen current for texture uploads. More... | |
std::unique_ptr< AndroidEGLSurface > | CreatePbufferSurface () const |
Allocates an 1x1 pbuffer surface that is used for making the onscreen context current for snapshotting. More... | |
fml::RefPtr< AndroidEnvironmentGL > | Environment () const |
bool | IsValid () const override |
bool | ClearCurrent () const |
EGLContext | GetEGLContext () const |
Returns the EGLContext. More... | |
EGLDisplay | GetEGLDisplay () const |
Returns the EGLDisplay. More... | |
EGLContext | CreateNewContext () const |
Create a new EGLContext using the same EGLConfig. More... | |
EGLConfig | Config () const |
The EGLConfig for this context. More... | |
Public Member Functions inherited from flutter::AndroidContext | |
AndroidContext (AndroidRenderingAPI rendering_api) | |
virtual | ~AndroidContext () |
AndroidRenderingAPI | RenderingApi () const |
virtual bool | IsValid () const |
void | SetMainSkiaContext (const sk_sp< GrDirectContext > &main_context) |
Setter for the Skia context to be used by subsequent AndroidSurfaces. More... | |
sk_sp< GrDirectContext > | GetMainSkiaContext () const |
Accessor for the Skia context associated with AndroidSurfaces and the raster thread. More... | |
std::shared_ptr< impeller::Context > | GetImpellerContext () const |
Accessor for the Impeller context associated with AndroidSurfaces and the raster thread. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from flutter::AndroidContext | |
void | SetImpellerContext (const std::shared_ptr< impeller::Context > &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 EGLSurface
s.
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.
flutter::AndroidContextGLSkia::~AndroidContextGLSkia | ( | ) |
Definition at line 105 of file android_context_gl_skia.cc.
bool flutter::AndroidContextGLSkia::ClearCurrent | ( | ) | const |
Definition at line 187 of file android_context_gl_skia.cc.
|
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.
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.
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.