◆ ReactorWorker()
flutter::ReactorWorker::ReactorWorker |
( |
| ) |
|
|
default |
◆ CanReactorReactOnCurrentThreadNow()
bool flutter::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 26 of file embedder_surface_gl_impeller.cc.
27 {
29 auto found = reactions_allowed_.find(std::this_thread::get_id());
30 if (found == reactions_allowed_.end()) {
31 return false;
32 }
33 return found->second;
34 }
◆ SetReactionsAllowedOnCurrentThread()
void flutter::ReactorWorker::SetReactionsAllowedOnCurrentThread |
( |
bool |
allowed | ) |
|
|
inline |
The documentation for this class was generated from the following file: