Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
graphite
GpuWorkSubmission.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef skgpu_graphite_GpuWorkSubmission_DEFINED
9
#define skgpu_graphite_GpuWorkSubmission_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
13
#include <memory>
14
15
namespace
skgpu::graphite
{
16
class
CommandBuffer;
17
class
SharedContext;
18
class
QueueManager;
19
20
class
GpuWorkSubmission
{
21
public
:
22
virtual
~GpuWorkSubmission
();
23
24
bool
isFinished
(
const
SharedContext
* sharedContext);
25
void
waitUntilFinished
(
const
SharedContext
* sharedContext);
26
27
protected
:
28
CommandBuffer
*
commandBuffer
() {
return
fCommandBuffer.get(); }
29
30
GpuWorkSubmission
(std::unique_ptr<CommandBuffer> cmdBuffer,
QueueManager
* queueManager);
31
32
private
:
33
virtual
bool
onIsFinished
(
const
SharedContext
* sharedContext) = 0;
34
virtual
void
onWaitUntilFinished
(
const
SharedContext
* sharedContext) = 0;
35
36
std::unique_ptr<CommandBuffer> fCommandBuffer;
37
sk_sp<SkRefCnt>
fOutstandingAsyncMapCounter;
38
QueueManager
* fQueueManager;
39
};
40
41
}
// namespace skgpu::graphite
42
43
#endif
// skgpu_graphite_GpuWorkSubmission_DEFINED
SkRefCnt.h
sk_sp
Definition
SkRefCnt.h:220
skgpu::graphite::CommandBuffer
Definition
CommandBuffer.h:38
skgpu::graphite::GpuWorkSubmission
Definition
GpuWorkSubmission.h:20
skgpu::graphite::GpuWorkSubmission::~GpuWorkSubmission
virtual ~GpuWorkSubmission()
Definition
GpuWorkSubmission.cpp:34
skgpu::graphite::GpuWorkSubmission::waitUntilFinished
void waitUntilFinished(const SharedContext *sharedContext)
Definition
GpuWorkSubmission.cpp:45
skgpu::graphite::GpuWorkSubmission::onWaitUntilFinished
virtual void onWaitUntilFinished(const SharedContext *sharedContext)=0
skgpu::graphite::GpuWorkSubmission::onIsFinished
virtual bool onIsFinished(const SharedContext *sharedContext)=0
skgpu::graphite::GpuWorkSubmission::commandBuffer
CommandBuffer * commandBuffer()
Definition
GpuWorkSubmission.h:28
skgpu::graphite::GpuWorkSubmission::isFinished
bool isFinished(const SharedContext *sharedContext)
Definition
GpuWorkSubmission.cpp:40
skgpu::graphite::QueueManager
Definition
QueueManager.h:32
skgpu::graphite::SharedContext
Definition
SharedContext.h:32
skgpu::graphite
Definition
BoundsManagerBench.cpp:27
Generated on Fri Apr 26 2024 06:17:18 for Flutter Engine by
1.9.8