◆ ReactorWorker()
flutter::AndroidContextGLImpeller::ReactorWorker::ReactorWorker |
( |
| ) |
|
|
default |
◆ ~ReactorWorker()
flutter::AndroidContextGLImpeller::ReactorWorker::~ReactorWorker |
( |
| ) |
|
|
overridedefault |
◆ CanReactorReactOnCurrentThreadNow()
bool flutter::AndroidContextGLImpeller::ReactorWorker::CanReactorReactOnCurrentThreadNow |
( |
const impeller::ReactorGLES & |
reactor | ) |
const |
|
inlineoverridevirtual |
Determines the ability of the worker to service a reaction on the current thread. The OpenGL context must be current on the thread if the worker says it is able to service a reaction.
- Parameters
-
- Returns
- If the worker is able to service a reaction. The reactor assumes the context is already current if true.
Implements impeller::ReactorGLES::Worker.
Definition at line 30 of file android_context_gl_impeller.cc.
31 {
33 auto found = reactions_allowed_.find(std::this_thread::get_id());
34 if (found == reactions_allowed_.end()) {
35 return false;
36 }
37 return found->second;
38 }
◆ SetReactionsAllowedOnCurrentThread()
void flutter::AndroidContextGLImpeller::ReactorWorker::SetReactionsAllowedOnCurrentThread |
( |
bool |
allowed | ) |
|
|
inline |
The documentation for this class was generated from the following file: