| 1 |
/* |
| 2 |
* Copyright 2019 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/ganesh/GrClientMappedBufferManager.h" |
| 9 |
|
| 10 |
#include "src/core/SkMessageBus.h" |
| 11 |
|
| 12 |
DECLARE_SKMESSAGEBUS_MESSAGE(GrClientMappedBufferManager::BufferFinishedMessage, |
| 13 |
GrDirectContext::DirectContextID, |
| 14 |
false) |
| 15 |
|
| 16 |
bool SkShouldPostMessageToBus(const GrClientMappedBufferManager::BufferFinishedMessage& m, |
| 17 |
GrDirectContext::DirectContextID potentialRecipient) { |
| 18 |
return m.fIntendedRecipient == potentialRecipient; |
| 19 |
} |