blob: 90701dfd314982c38781eb77e949797cfecf31a3 [file] [edit]
/*
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/graphite/buffer/ClientMappedBufferManager.h"
#include "src/core/SkMessageBus.h"
DECLARE_SKMESSAGEBUS_MESSAGE(skgpu::graphite::ClientMappedBufferManager::BufferFinishedMessage,
skgpu::graphite::Context::ContextID,
false)
namespace skgpu::graphite {
bool SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage& m,
Context::ContextID potentialRecipient) {
return m.fIntendedRecipient == potentialRecipient;
}
}