• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef GrClientMappedBufferManager_DEFINED
9 #define GrClientMappedBufferManager_DEFINED
10 
11 #include "include/gpu/GrDirectContext.h"
12 #include "src/gpu/AsyncReadTypes.h"
13 #include "src/gpu/ganesh/GrGpuBuffer.h"
14 
15 // This is declared as a class rather than an alias to allow for forward declarations
16 class GrClientMappedBufferManager :
17         public skgpu::TClientMappedBufferManager<GrGpuBuffer, GrDirectContext::DirectContextID> {
18 public:
GrClientMappedBufferManager(GrDirectContext::DirectContextID ownerID)19     GrClientMappedBufferManager(GrDirectContext::DirectContextID ownerID)
20             : TClientMappedBufferManager(ownerID) {}
21 };
22 
23 bool SkShouldPostMessageToBus(const GrClientMappedBufferManager::BufferFinishedMessage&,
24                               GrDirectContext::DirectContextID potentialRecipient);
25 
26 #endif
27