Flutter Engine
The Flutter Engine
|
#include <android_context_gl_skia.h>
Public Member Functions | |
AndroidContextGLSkia (fml::RefPtr< AndroidEnvironmentGL > environment, const TaskRunners &taskRunners, uint8_t msaa_samples) | |
~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 () |
AndroidRenderingAPI | RenderingApi () 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. | |
std::shared_ptr< impeller::Context > | GetImpellerContext () const |
Accessor for the Impeller context associated with AndroidSurfaces and the raster thread. | |
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, | ||
uint8_t | msaa_samples | ||
) |
Definition at line 67 of file android_context_gl_skia.cc.
flutter::AndroidContextGLSkia::~AndroidContextGLSkia | ( | ) |
Definition at line 111 of file android_context_gl_skia.cc.
bool flutter::AndroidContextGLSkia::ClearCurrent | ( | ) | const |
Definition at line 193 of file android_context_gl_skia.cc.
|
inline |
The EGLConfig for this context.
Definition at line 102 of file android_context_gl_skia.h.
EGLContext flutter::AndroidContextGLSkia::CreateNewContext | ( | ) | const |
Create a new EGLContext using the same EGLConfig.
Definition at line 214 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 163 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 146 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 175 of file android_context_gl_skia.cc.
fml::RefPtr< AndroidEnvironmentGL > flutter::AndroidContextGLSkia::Environment | ( | ) | const |
Definition at line 185 of file android_context_gl_skia.cc.
EGLContext flutter::AndroidContextGLSkia::GetEGLContext | ( | ) | const |
Returns the EGLContext.
Definition at line 206 of file android_context_gl_skia.cc.
EGLDisplay flutter::AndroidContextGLSkia::GetEGLDisplay | ( | ) | const |
Returns the EGLDisplay.
Definition at line 210 of file android_context_gl_skia.cc.
|
overridevirtual |
Reimplemented from flutter::AndroidContext.
Definition at line 189 of file android_context_gl_skia.cc.