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 virtual GrTexture* getTexture() SK_OVERRIDE; | 50 virtual GrTexture* getTexture() SK_OVERRIDE; |
51 | 51 |
52 protected: | 52 protected: |
53 // overrides from SkPixelRef | 53 // overrides from SkPixelRef |
54 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; | 54 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; |
55 virtual SkPixelRef* deepCopy(SkColorType, const SkIRect* subset) SK_OVERRIDE
; | 55 virtual SkPixelRef* deepCopy(SkColorType, SkColorProfileType, |
| 56 const SkIRect* subset) SK_OVERRIDE; |
56 | 57 |
57 private: | 58 private: |
58 GrSurface* fSurface; | 59 GrSurface* fSurface; |
59 typedef SkROLockPixelsPixelRef INHERITED; | 60 typedef SkROLockPixelsPixelRef INHERITED; |
60 }; | 61 }; |
61 | 62 |
62 #endif | 63 #endif |
OLD | NEW |