OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrImageIDTextureAdjuster_DEFINED | 8 #ifndef GrImageIDTextureAdjuster_DEFINED |
9 #define GrImageIDTextureAdjuster_DEFINED | 9 #define GrImageIDTextureAdjuster_DEFINED |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 private: | 38 private: |
39 void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override; | 39 void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override; |
40 | 40 |
41 void didCacheCopy(const GrUniqueKey& copyKey) override; | 41 void didCacheCopy(const GrUniqueKey& copyKey) override; |
42 | 42 |
43 const SkImage_Base* fImageBase; | 43 const SkImage_Base* fImageBase; |
44 | 44 |
45 typedef GrTextureAdjuster INHERITED; | 45 typedef GrTextureAdjuster INHERITED; |
46 }; | 46 }; |
47 | 47 |
48 /** 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.
| |
49 class GrBitmapTextureMaker : public GrTextureMaker { | |
bsalomon
2015/11/17 23:15:57
Moved this from SkGr.cpp to here and the correspon
| |
50 public: | |
51 GrBitmapTextureMaker(GrContext* context, const SkBitmap& bitmap); | |
52 | |
53 protected: | |
54 GrTexture* refOriginalTexture() override; | |
55 | |
56 void makeCopyKey(const CopyParams& copyParams, GrUniqueKey* copyKey) overrid e; | |
57 | |
58 void didCacheCopy(const GrUniqueKey& copyKey) override; | |
59 | |
60 private: | |
61 const SkBitmap fBitmap; | |
62 GrUniqueKey fOriginalKey; | |
63 | |
64 typedef GrTextureMaker INHERITED; | |
65 }; | |
66 | |
48 #endif | 67 #endif |
OLD | NEW |