8#ifndef skgpu_graphite_QueueManager_DEFINED
9#define skgpu_graphite_QueueManager_DEFINED
25class GpuWorkSubmission;
26struct InsertRecordingInfo;
30class UploadBufferManager;
51#if defined(GRAPHITE_TEST_UTILS)
52 virtual void startCapture() {}
53 virtual void stopCapture() {}
58 virtual void tick()
const {}
76 SkDeque fOutstandingSubmissions;
78 std::vector<std::unique_ptr<CommandBuffer>> fAvailableCommandBuffers;
void addUploadBufferManagerRefs(UploadBufferManager *)
const SharedContext * fSharedContext
void checkForFinishedWork(SyncToCpu)
bool addRecording(const InsertRecordingInfo &, Context *)
std::unique_ptr< GpuWorkSubmission > OutstandingSubmission
virtual OutstandingSubmission onSubmitToGpu()=0
bool addFinishInfo(const InsertFinishInfo &, ResourceProvider *, SkSpan< const sk_sp< Buffer > > buffersToAsyncMap={})
bool addTask(Task *, Context *)
std::unique_ptr< CommandBuffer > fCurrentCommandBuffer
QueueManager(const SharedContext *sharedContext)
virtual void tick() const
void returnCommandBuffer(std::unique_ptr< CommandBuffer >)
virtual std::unique_ptr< CommandBuffer > getNewCommandBuffer(ResourceProvider *)=0
bool hasUnfinishedGpuWork()