Index: src/gpu/GrImageIDTextureAdjuster.h |
diff --git a/src/gpu/GrImageIDTextureAdjuster.h b/src/gpu/GrImageIDTextureAdjuster.h |
index 6c0747a62ce337e516cb285845068f418d89517b..54a3c1634e8f203918ebd172bd53d99106cb1b71 100644 |
--- a/src/gpu/GrImageIDTextureAdjuster.h |
+++ b/src/gpu/GrImageIDTextureAdjuster.h |
@@ -45,4 +45,23 @@ private: |
typedef GrTextureAdjuster INHERITED; |
}; |
+/** Implementation for sw-backed SkBitmaps. */ |
robertphillips
2015/11/18 13:58:35
Soup up this comment since it is now separated fro
bsalomon
2015/11/18 18:05:37
Done.
|
+class GrBitmapTextureMaker : public GrTextureMaker { |
bsalomon
2015/11/17 23:15:57
Moved this from SkGr.cpp to here and the correspon
|
+public: |
+ GrBitmapTextureMaker(GrContext* context, const SkBitmap& bitmap); |
+ |
+protected: |
+ GrTexture* refOriginalTexture() override; |
+ |
+ void makeCopyKey(const CopyParams& copyParams, GrUniqueKey* copyKey) override; |
+ |
+ void didCacheCopy(const GrUniqueKey& copyKey) override; |
+ |
+private: |
+ const SkBitmap fBitmap; |
+ GrUniqueKey fOriginalKey; |
+ |
+ typedef GrTextureMaker INHERITED; |
+}; |
+ |
#endif |