The renderer context used for testing. More...
#include <gl_context_switch_test.h>
Public Member Functions | |
| TestSwitchableGLContext (int context) | |
| ~TestSwitchableGLContext () override | |
| bool | SetCurrent () override |
| bool | RemoveCurrent () override |
| int | GetContext () |
Public Member Functions inherited from flutter::SwitchableGLContext | |
| SwitchableGLContext () | |
| virtual | ~SwitchableGLContext () |
| FML_DISALLOW_COPY_AND_ASSIGN (SwitchableGLContext) | |
Static Public Member Functions | |
| static int | GetCurrentContext () |
| static void | SetCurrentContext (int context) |
The renderer context used for testing.
Definition at line 16 of file gl_context_switch_test.h.
|
explicit |
Definition at line 12 of file gl_context_switch_test.cc.
|
overridedefault |
| int flutter::testing::TestSwitchableGLContext::GetContext | ( | ) |
Definition at line 27 of file gl_context_switch_test.cc.
|
static |
Definition at line 31 of file gl_context_switch_test.cc.
References flutter::testing::current_context.
Referenced by flutter::testing::TEST().
|
overridevirtual |
Implements flutter::SwitchableGLContext.
Definition at line 22 of file gl_context_switch_test.cc.
References SetCurrentContext().
|
overridevirtual |
Implements flutter::SwitchableGLContext.
Definition at line 17 of file gl_context_switch_test.cc.
References SetCurrentContext().
|
static |
Set the current context
This is to mimic how other programs outside flutter sets the context.
Definition at line 35 of file gl_context_switch_test.cc.
References flutter::testing::current_context.
Referenced by RemoveCurrent(), and SetCurrent().