An RAII object that makes the trampolines EGL context current when constructed and clears the EGL binding on destruction. More...
#include <trampoline.h>
Public Member Functions | |
AutoTrampolineContext (const Trampoline &trampoline) | |
Constructs a new instance and makes the trampolines EGL context current on the calling thread. More... | |
~AutoTrampolineContext () | |
Destroys the object and clears the previous EGL binding. More... | |
AutoTrampolineContext (const AutoTrampolineContext &)=delete | |
AutoTrampolineContext & | operator= (const AutoTrampolineContext &)=delete |
An RAII object that makes the trampolines EGL context current when constructed and clears the EGL binding on destruction.
Definition at line 127 of file trampoline.h.
|
explicit |
Constructs a new instance and makes the trampolines EGL context current on the calling thread.
[in] | trampoline | The trampoline. |
Definition at line 318 of file trampoline.cc.
References impeller::egl::Context::IsCurrent(), impeller::egl::Context::MakeCurrent(), and VALIDATION_LOG.
impeller::glvk::AutoTrampolineContext::~AutoTrampolineContext | ( | ) |
Destroys the object and clears the previous EGL binding.
Definition at line 326 of file trampoline.cc.
References impeller::egl::Context::ClearCurrent(), and VALIDATION_LOG.
|
delete |
|
delete |