OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 SkGrPixelRef_DEFINED | 8 #ifndef SkGrPixelRef_DEFINED |
9 #define SkGrPixelRef_DEFINED | 9 #define SkGrPixelRef_DEFINED |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 */ | 45 */ |
46 SkGrPixelRef(const SkImageInfo&, GrSurface*); | 46 SkGrPixelRef(const SkImageInfo&, GrSurface*); |
47 virtual ~SkGrPixelRef(); | 47 virtual ~SkGrPixelRef(); |
48 | 48 |
49 // override from SkPixelRef | 49 // override from SkPixelRef |
50 GrTexture* getTexture() override; | 50 GrTexture* getTexture() override; |
51 | 51 |
52 protected: | 52 protected: |
53 // overrides from SkPixelRef | 53 // overrides from SkPixelRef |
54 bool onReadPixels(SkBitmap* dst, const SkIRect* subset) override; | 54 bool onReadPixels(SkBitmap* dst, const SkIRect* subset) override; |
55 virtual SkPixelRef* deepCopy(SkColorType, SkColorProfileType, | 55 SkPixelRef* deepCopy(SkColorType, SkColorProfileType, |
56 const SkIRect* subset) override; | 56 const SkIRect* subset) override; |
| 57 void onNotifyPixelsChanged() override; |
57 | 58 |
58 private: | 59 private: |
59 GrSurface* fSurface; | 60 GrSurface* fSurface; |
60 typedef SkROLockPixelsPixelRef INHERITED; | 61 typedef SkROLockPixelsPixelRef INHERITED; |
61 }; | 62 }; |
62 | 63 |
63 #endif | 64 #endif |
OLD | NEW |