Flutter Engine
The Flutter Engine
|
#include <GLTestContext.h>
Public Member Functions | |
~GLTestContext () override | |
GrBackendApi | backend () override |
bool | isValid () const |
const GrGLInterface * | gl () const |
virtual GrEGLImage | texture2DToEGLImage (GrGLuint) const |
virtual void | destroyEGLImage (GrEGLImage) const |
virtual GrGLuint | eglImageToExternalTexture (GrEGLImage) const |
void | testAbandon () override |
void | overrideVersion (const char *version, const char *shadingLanguageVersion) |
virtual std::unique_ptr< GLTestContext > | makeNew () const |
template<typename Ret , typename... Args> | |
void | getGLProcAddress (Ret(GR_GL_FUNCTION_TYPE **out)(Args...), const char *name, const char *ext=nullptr) const |
sk_sp< GrDirectContext > | makeContext (const GrContextOptions &options) override |
Public Member Functions inherited from sk_gpu_test::TestContext | |
virtual | ~TestContext () |
bool | fenceSyncSupport () const |
bool | gpuTimingSupport () const |
GpuTimer * | gpuTimer () const |
bool | getMaxGpuFrameLag (int *maxFrameLag) const |
void | makeNotCurrent () const |
void | makeCurrent () const |
SkScopeExit | makeCurrentAndAutoRestore () const |
virtual GrBackendApi | backend ()=0 |
virtual sk_sp< GrDirectContext > | makeContext (const GrContextOptions &) |
void | flushAndWaitOnSync (GrDirectContext *context) |
virtual void | testAbandon () |
void | flushAndSyncCpu (GrDirectContext *) |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Protected Member Functions | |
GLTestContext () | |
void | init (sk_sp< const GrGLInterface >) |
void | teardown () override |
virtual GrGLFuncPtr | onPlatformGetProcAddress (const char *) const =0 |
Protected Member Functions inherited from sk_gpu_test::TestContext | |
TestContext () | |
virtual void | teardown () |
virtual void | onPlatformMakeNotCurrent () const =0 |
virtual void | onPlatformMakeCurrent () const =0 |
virtual std::function< void()> | onPlatformGetAutoContextRestore () const =0 |
Additional Inherited Members | |
Protected Attributes inherited from sk_gpu_test::TestContext | |
bool | fFenceSupport = false |
std::unique_ptr< GpuTimer > | fGpuTimer |
An offscreen OpenGL context. Provides a GrGLInterface struct of function pointers for the context This class is intended for Skia's internal testing needs and not for general use. When SK_GL is not defined the GrGLInterface will always be nullptr.
Definition at line 21 of file GLTestContext.h.
|
override |
Definition at line 154 of file GLTestContext.cpp.
|
protected |
Definition at line 152 of file GLTestContext.cpp.
|
inlineoverridevirtual |
|
inlinevirtual |
Definition at line 35 of file GLTestContext.h.
|
inlinevirtual |
Used for testing EGLImage integration. Takes a EGLImage and wraps it in a GL_TEXTURE_EXTERNAL_OES.
Definition at line 41 of file GLTestContext.h.
|
inline |
Definition at line 54 of file GLTestContext.h.
|
inline |
Definition at line 30 of file GLTestContext.h.
|
protected |
Definition at line 183 of file GLTestContext.cpp.
bool sk_gpu_test::GLTestContext::isValid | ( | ) | const |
|
overridevirtual |
Reimplemented from sk_gpu_test::TestContext.
Definition at line 224 of file GLTestContext.cpp.
|
inlinevirtual |
Creates a new GL context of the same type and makes the returned context current (if not null).
Definition at line 51 of file GLTestContext.h.
|
protectedpure virtual |
void sk_gpu_test::GLTestContext::overrideVersion | ( | const char * | version, |
const char * | shadingLanguageVersion | ||
) |
Definition at line 206 of file GLTestContext.cpp.
|
overrideprotectedvirtual |
This should destroy the 3D context.
Reimplemented from sk_gpu_test::TestContext.
Definition at line 190 of file GLTestContext.cpp.
|
overridevirtual |
This notifies the context that we are deliberately testing abandoning the context. It is useful for debugging contexts that would otherwise test that GPU resources are properly deleted. It also allows a debugging context to test that further API calls are not made by Skia GPU code.
Reimplemented from sk_gpu_test::TestContext.
Definition at line 196 of file GLTestContext.cpp.
|
inlinevirtual |
Used for testing EGLImage integration. Take a GL_TEXTURE_2D and wraps it in an EGL Image
Definition at line 33 of file GLTestContext.h.