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 #include "src/gpu/graphite/ClientMappedBufferManager.h" 9 10 ////////////////////////////////////////////////////////////////////////////// 11 12 DECLARE_SKMESSAGEBUS_MESSAGE(skgpu::graphite::ClientMappedBufferManager::BufferFinishedMessage, 13 skgpu::graphite::Context::ContextID, 14 false) 15 16 namespace skgpu::graphite { SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage & m,Context::ContextID potentialRecipient)17bool SkShouldPostMessageToBus(const ClientMappedBufferManager::BufferFinishedMessage& m, 18 Context::ContextID potentialRecipient) { 19 return m.fIntendedRecipient == potentialRecipient; 20 } 21 } 22 23