Flutter Engine
The Flutter Engine
ClientMappedBufferManager.cpp
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
9
10//////////////////////////////////////////////////////////////////////////////
11
12DECLARE_SKMESSAGEBUS_MESSAGE(skgpu::graphite::ClientMappedBufferManager::BufferFinishedMessage,
14 false)
15
16namespace skgpu::graphite {
17bool SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage& m,
18 Context::ContextID potentialRecipient) {
19 return m.fIntendedRecipient == potentialRecipient;
20}
21}
22
bool SkShouldPostMessageToBus(const GrClientMappedBufferManager::BufferFinishedMessage &, GrDirectContext::DirectContextID potentialRecipient)
#define DECLARE_SKMESSAGEBUS_MESSAGE(Message, IDType, AllowCopyableMessage)
Definition: SkMessageBus.h:74
Definition: GpuTools.h:21