OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkLazyPixelRef_DEFINED | 8 #ifndef SkLazyPixelRef_DEFINED |
9 #define SkLazyPixelRef_DEFINED | 9 #define SkLazyPixelRef_DEFINED |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void onUnlockPixels() SK_OVERRIDE; | 61 virtual void onUnlockPixels() SK_OVERRIDE; |
62 virtual bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } | 62 virtual bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } |
63 virtual SkData* onRefEncodedData() SK_OVERRIDE; | 63 virtual SkData* onRefEncodedData() SK_OVERRIDE; |
64 | 64 |
65 private: | 65 private: |
66 bool fErrorInDecoding; | 66 bool fErrorInDecoding; |
67 SkData* fData; | 67 SkData* fData; |
68 SkBitmapFactory::DecodeProc fDecodeProc; | 68 SkBitmapFactory::DecodeProc fDecodeProc; |
69 SkImageCache* fImageCache; | 69 SkImageCache* fImageCache; |
70 intptr_t fCacheId; | 70 intptr_t fCacheId; |
| 71 size_t fRowBytes; |
71 | 72 |
72 #if LAZY_CACHE_STATS | 73 #if LAZY_CACHE_STATS |
73 static int32_t gCacheHits; | 74 static int32_t gCacheHits; |
74 static int32_t gCacheMisses; | 75 static int32_t gCacheMisses; |
75 #endif | 76 #endif |
76 | 77 |
77 typedef SkPixelRef INHERITED; | 78 typedef SkPixelRef INHERITED; |
78 }; | 79 }; |
79 | 80 |
80 #endif // SkLazyPixelRef_DEFINED | 81 #endif // SkLazyPixelRef_DEFINED |
OLD | NEW |