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