Flutter Engine
The Flutter Engine
|
#include <gl_context_switch.h>
Public Member Functions | |
GLContextSwitch (std::unique_ptr< SwitchableGLContext > context) | |
~GLContextSwitch () override | |
Public Member Functions inherited from flutter::GLContextResult | |
GLContextResult () | |
virtual | ~GLContextResult () |
bool | GetResult () |
Additional Inherited Members | |
Protected Member Functions inherited from flutter::GLContextResult | |
GLContextResult (bool static_result) | |
FML_DISALLOW_COPY_AND_ASSIGN (GLContextResult) | |
Protected Attributes inherited from flutter::GLContextResult | |
bool | result_ |
Switches the gl context to the a context that is passed in the constructor.
In destruction, it should restore the current context to what was before the construction of this switch.
Definition at line 94 of file gl_context_switch.h.
|
explicit |
Constructs a |GLContextSwitch|.
context | The context that is going to be set as the current context. The |GLContextSwitch| should not outlive the owner of the gl context wrapped inside the context . |
Definition at line 28 of file gl_context_switch.cc.
|
override |
Definition at line 34 of file gl_context_switch.cc.