Index: src/gpu/GrResourceProvider.h |
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f560afa0fd509ff4e47a6d2910941474c8bda955 |
--- /dev/null |
+++ b/src/gpu/GrResourceProvider.h |
@@ -0,0 +1,30 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef GrResourceProvider_DEFINED |
+#define GrResourceProvider_DEFINED |
+ |
+#include "GrTextureProvider.h" |
+ |
+/** |
+ * An extension of the texture provider for arbitrary resource types. This class is intended for |
+ * use within the Gr code base, not by clients or extensions (e.g. third party GrProcessor |
+ * derivatives). |
+ */ |
+class GrResourceProvider : public GrTextureProvider { |
+public: |
+ |
+ GrResourceProvider(GrGpu* gpu, GrResourceCache* cache) : INHERITED(gpu, cache) {} |
+ |
+ using GrTextureProvider::assignUniqueKeyToResource; |
+ using GrTextureProvider::findAndRefResourceByUniqueKey; |
+ using GrTextureProvider::abandon; |
+ |
+ typedef GrTextureProvider INHERITED; |
+}; |
+ |
+#endif |