Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::testing::NoopCommandQueue Class Reference

#include <context_spy.h>

Inheritance diagram for impeller::testing::NoopCommandQueue:
impeller::CommandQueue

Public Member Functions

fml::Status Submit (const std::vector< std::shared_ptr< CommandBuffer > > &buffers, const CompletionCallback &completion_callback={}) override
 Submit one or more command buffer objects to be encoded and executed on the GPU. More...
 
- Public Member Functions inherited from impeller::CommandQueue
 CommandQueue ()
 
virtual ~CommandQueue ()
 
virtual fml::Status Submit (const std::vector< std::shared_ptr< CommandBuffer > > &buffers, const CompletionCallback &completion_callback={})
 Submit one or more command buffer objects to be encoded and executed on the GPU. More...
 

Additional Inherited Members

- Public Types inherited from impeller::CommandQueue
using CompletionCallback = std::function< void(CommandBuffer::Status)>
 

Detailed Description

Definition at line 17 of file context_spy.h.

Member Function Documentation

◆ Submit()

fml::Status impeller::testing::NoopCommandQueue::Submit ( const std::vector< std::shared_ptr< CommandBuffer > > &  buffers,
const CompletionCallback completion_callback = {} 
)
overridevirtual

Submit one or more command buffer objects to be encoded and executed on the GPU.

The order of the provided buffers determines the ordering in which they are submitted.

The returned status only indicates if the command buffer was successfully submitted. Successful completion of the command buffer can only be checked in the optional completion callback.

Only the Metal and Vulkan backends can give a status beyond successful encoding. This callback may be called more than once and potentially on a different thread.

Reimplemented from impeller::CommandQueue.

Definition at line 14 of file context_spy.cc.

16 {
17 if (completion_callback) {
18 completion_callback(CommandBuffer::Status::kCompleted);
19 }
20 return fml::Status();
21}
Task::Status Status
Definition: TaskList.cpp:15

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