Debian Codegraph @

src/gpu/graphite/ClientMappedBufferManager.h

raw
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 ClientMappedBufferManager_graphite_DEFINED
9 #define ClientMappedBufferManager_graphite_DEFINED
10
11 #include "include/gpu/graphite/Context.h"
12 #include "include/private/base/SkTArray.h"
13 #include "src/gpu/AsyncReadTypes.h"
14 #include "src/gpu/graphite/Buffer.h"
15
16 #include <forward_list>
17
18 namespace skgpu::graphite {
19
20 // This is declared as a class rather than an alias to allow for forward declarations
21 class ClientMappedBufferManager :
22 public skgpu::TClientMappedBufferManager<Buffer, Context::ContextID> {
23 public:
24 ClientMappedBufferManager(Context::ContextID ownerID)
25 : TClientMappedBufferManager(ownerID) {}
26 };
27
28 bool SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage&,
29 Context::ContextID potentialRecipient);
30
31 } // namespace skgpu::graphite
32
33 #endif