blob: 58b70c011b442f1f894fdf4d0caf977b9ff189bc [file] [log] [blame]
/*
* 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 "include/private/base/SkTArray.h"
#include "src/gpu/AsyncReadTypes.h"
#include "src/gpu/graphite/Buffer.h"
#include <forward_list>
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