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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual ~SkGrPixelRef(); | 49 virtual ~SkGrPixelRef(); |
50 | 50 |
51 // override from SkPixelRef | 51 // override from SkPixelRef |
52 virtual GrTexture* getTexture() SK_OVERRIDE; | 52 virtual GrTexture* getTexture() SK_OVERRIDE; |
53 | 53 |
54 SK_DECLARE_UNFLATTENABLE_OBJECT() | 54 SK_DECLARE_UNFLATTENABLE_OBJECT() |
55 | 55 |
56 protected: | 56 protected: |
57 // overrides from SkPixelRef | 57 // overrides from SkPixelRef |
58 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; | 58 virtual bool onReadPixels(SkBitmap* dst, const SkIRect* subset) SK_OVERRIDE; |
59 virtual SkPixelRef* deepCopy(const SkIRect* subset) SK_OVERRIDE; | 59 virtual SkPixelRef* deepCopy(SkBitmap::Config dstConfig, const SkIRect* subs
et) SK_OVERRIDE; |
60 | 60 |
61 private: | 61 private: |
62 GrSurface* fSurface; | 62 GrSurface* fSurface; |
63 bool fUnlock; // if true the pixel ref owns a texture cache lock on
fSurface | 63 bool fUnlock; // if true the pixel ref owns a texture cache lock on
fSurface |
64 | 64 |
65 typedef SkROLockPixelsPixelRef INHERITED; | 65 typedef SkROLockPixelsPixelRef INHERITED; |
66 }; | 66 }; |
67 | 67 |
68 #endif | 68 #endif |
OLD | NEW |