Hoist GrVkResource up so it can be used for D3D and Metal.
Bug: skia:9935
Change-Id: Ie13b9077c5db805020973e5cbab1aa8468c88742
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/276214
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/vk/GrVkUniformBuffer.h b/src/gpu/vk/GrVkUniformBuffer.h
index f971c85..db9350a 100644
--- a/src/gpu/vk/GrVkUniformBuffer.h
+++ b/src/gpu/vk/GrVkUniformBuffer.h
@@ -17,7 +17,7 @@
public:
static GrVkUniformBuffer* Create(GrVkGpu* gpu, size_t size);
- static const GrVkResource* CreateResource(GrVkGpu* gpu, size_t size);
+ static const GrManagedResource* CreateResource(GrVkGpu* gpu, size_t size);
static const size_t kStandardSize = 256;
void* map(GrVkGpu* gpu) {
@@ -40,7 +40,7 @@
Resource(VkBuffer buf, const GrVkAlloc& alloc)
: INHERITED(buf, alloc, kUniform_Type) {}
- void onRecycle(GrVkGpu* gpu) const override;
+ void onRecycle(GrGpu* gpu) const override;
typedef GrVkBuffer::Resource INHERITED;
};