Public Member Functions | |
| void | PostJob (const fml::closure &job) override |
| Post a compilation job to the worker task runner. | |
| void | OnJobAdded () override |
| Called by PostJobForDescriptor after a job has been successfully added to the queue. Subclasses must implement this to define their scheduling strategy. | |
| bool | AddJobForTest (const PipelineDescriptor &desc, const fml::closure &job) |
| bool | HasPendingJobsForTest () |
Public Member Functions inherited from impeller::PipelineCompileQueue | |
| PipelineCompileQueue ()=default | |
| virtual | ~PipelineCompileQueue () |
| PipelineCompileQueue (const PipelineCompileQueue &)=delete | |
| PipelineCompileQueue & | operator= (const PipelineCompileQueue &)=delete |
| bool | PostJobForDescriptor (const PipelineDescriptor &desc, const fml::closure &job) |
| Post a compile job for the specified descriptor. | |
| void | PerformJobEagerly (const PipelineDescriptor &desc) |
| If the task has not yet been done, perform it eagerly on the calling thread. This can be used in lieu of an idle wait for the task completion on the calling thread. | |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::PipelineCompileQueue | |
| void | DoOneJob () |
| Execute one pending compilation job from the queue. | |
| bool | AddJob (const PipelineDescriptor &desc, const fml::closure &job) |
| Add a compilation job to the pending queue for the specified descriptor. | |
| bool | HasPendingJobs () |
| Check if there are any pending compilation jobs in the queue. | |
Definition at line 15 of file pipeline_compile_queue_unittests.cc.
|
inline |
Definition at line 25 of file pipeline_compile_queue_unittests.cc.
References impeller::PipelineCompileQueue::AddJob().
|
inline |
Definition at line 29 of file pipeline_compile_queue_unittests.cc.
References impeller::PipelineCompileQueue::HasPendingJobs().
|
inlineoverridevirtual |
Called by PostJobForDescriptor after a job has been successfully added to the queue. Subclasses must implement this to define their scheduling strategy.
The default implementation for duplicate descriptors is to run the job eagerly. Subclasses can override this behavior by checking for duplicates before calling the base class.
Implements impeller::PipelineCompileQueue.
Definition at line 23 of file pipeline_compile_queue_unittests.cc.
|
inlineoverridevirtual |
Post a compilation job to the worker task runner.
This is a pure virtual function that must be implemented by
subclasses. It is responsible for actually dispatching the
job closure to the appropriate task runner for execution.
| [in] | job | The compilation job closure to post |
Implements impeller::PipelineCompileQueue.
Definition at line 17 of file pipeline_compile_queue_unittests.cc.