Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
graphite
mtl
MtlQueueManager.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 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_MtlQueueManager_DEFINED
9
#define skgpu_graphite_MtlQueueManager_DEFINED
10
11
#include "
include/ports/SkCFObject.h
"
12
#include "
src/gpu/graphite/QueueManager.h
"
13
14
#import <Metal/Metal.h>
15
16
namespace
skgpu::graphite
{
17
18
class
MtlSharedContext;
19
20
class
MtlQueueManager
:
public
QueueManager
{
21
public
:
22
MtlQueueManager
(sk_cfp<id<MTLCommandQueue>>
queue
,
const
SharedContext
*);
23
~MtlQueueManager
()
override
{}
24
25
private
:
26
const
MtlSharedContext
* mtlSharedContext()
const
;
27
28
std::unique_ptr<CommandBuffer>
getNewCommandBuffer
(
ResourceProvider
*)
override
;
29
OutstandingSubmission
onSubmitToGpu
()
override
;
30
31
#if defined(GRAPHITE_TEST_UTILS)
32
void
startCapture()
override
;
33
void
stopCapture()
override
;
34
#endif
35
36
sk_cfp<id<MTLCommandQueue>> fQueue;
37
};
38
39
}
// namespace skgpu::graphite
40
41
#endif
// skgpu_graphite_MtlQueueManager_DEFINED
QueueManager.h
SkCFObject.h
skgpu::graphite::MtlQueueManager
Definition
MtlQueueManager.h:20
skgpu::graphite::MtlQueueManager::onSubmitToGpu
OutstandingSubmission onSubmitToGpu() override
Definition
MtlQueueManager.mm:52
skgpu::graphite::MtlQueueManager::~MtlQueueManager
~MtlQueueManager() override
Definition
MtlQueueManager.h:23
skgpu::graphite::MtlQueueManager::getNewCommandBuffer
std::unique_ptr< CommandBuffer > getNewCommandBuffer(ResourceProvider *) override
Definition
MtlQueueManager.mm:28
skgpu::graphite::MtlSharedContext
Definition
MtlSharedContext.h:27
skgpu::graphite::QueueManager
Definition
QueueManager.h:32
skgpu::graphite::QueueManager::OutstandingSubmission
std::unique_ptr< GpuWorkSubmission > OutstandingSubmission
Definition
QueueManager.h:65
skgpu::graphite::ResourceProvider
Definition
ResourceProvider.h:50
skgpu::graphite::SharedContext
Definition
SharedContext.h:32
queue
VkQueue queue
Definition
main.cc:55
skgpu::graphite
Definition
BoundsManagerBench.cpp:27
Generated on Fri Apr 26 2024 06:17:18 for Flutter Engine by
1.9.8