Flutter Impeller
impeller::testing::MockWorker Class Referencefinal
Inheritance diagram for impeller::testing::MockWorker:
impeller::ReactorGLES::Worker

Public Member Functions

 MockWorker ()=default
 
bool CanReactorReactOnCurrentThreadNow (const ReactorGLES &reactor) const override
 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. More...
 
- Public Member Functions inherited from impeller::ReactorGLES::Worker
virtual ~Worker ()=default
 

Detailed Description

Definition at line 26 of file blit_command_gles_unittests.cc.

Constructor & Destructor Documentation

◆ MockWorker()

impeller::testing::MockWorker::MockWorker ( )
default

Member Function Documentation

◆ CanReactorReactOnCurrentThreadNow()

bool impeller::testing::MockWorker::CanReactorReactOnCurrentThreadNow ( const 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
[in]reactorThe reactor
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 31 of file blit_command_gles_unittests.cc.

32  {
33  return true;
34  }

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