Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::ReactorGLES::Worker Class Referenceabstract

A delegate implemented by a thread on which an OpenGL context is current. There may be multiple workers for the reactor to perform reactions on. In that case, it is the workers responsibility to ensure that all of them use either the same OpenGL context or multiple OpenGL contexts in the same sharegroup. More...

#include <reactor_gles.h>

Inheritance diagram for impeller::ReactorGLES::Worker:
flutter::AndroidContextGLImpeller::ReactorWorker flutter::ReactorWorker impeller::PlaygroundImplGLES::ReactorWorker

Public Member Functions

virtual ~Worker ()=default
 
virtual bool CanReactorReactOnCurrentThreadNow (const ReactorGLES &reactor) const =0
 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.
 

Detailed Description

A delegate implemented by a thread on which an OpenGL context is current. There may be multiple workers for the reactor to perform reactions on. In that case, it is the workers responsibility to ensure that all of them use either the same OpenGL context or multiple OpenGL contexts in the same sharegroup.

Definition at line 68 of file reactor_gles.h.

Constructor & Destructor Documentation

◆ ~Worker()

virtual impeller::ReactorGLES::Worker::~Worker ( )
virtualdefault

Member Function Documentation

◆ CanReactorReactOnCurrentThreadNow()

virtual bool impeller::ReactorGLES::Worker::CanReactorReactOnCurrentThreadNow ( const ReactorGLES reactor) const
pure virtual

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
[in]reactorThe reactor
Returns
If the worker is able to service a reaction. The reactor assumes the context is already current if true.

Implemented in flutter::AndroidContextGLImpeller::ReactorWorker, flutter::ReactorWorker, and impeller::PlaygroundImplGLES::ReactorWorker.


The documentation for this class was generated from the following file: