aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/graphite/ClientMappedBufferManager.h
blob: 25a7bbc52aa94c5faa0b11e9d32f7b7ce390c16c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright 2022 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef ClientMappedBufferManager_graphite_DEFINED
#define ClientMappedBufferManager_graphite_DEFINED

#include "include/gpu/graphite/Context.h"
#include "src/gpu/AsyncReadTypes.h"
#include "src/gpu/graphite/Buffer.h"

namespace skgpu::graphite {

// This is declared as a class rather than an alias to allow for forward declarations
class ClientMappedBufferManager :
        public skgpu::TClientMappedBufferManager<Buffer, Context::ContextID> {
public:
    ClientMappedBufferManager(Context::ContextID ownerID)
            : TClientMappedBufferManager(ownerID) {}
};

bool SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage&,
                              Context::ContextID potentialRecipient);

} // namespace skgpu::graphite

#endif