| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual bool onImplementsDecodeInto() SK_OVERRIDE; | 64 virtual bool onImplementsDecodeInto() SK_OVERRIDE; |
| 65 virtual bool onDecodeInto(int pow2, SkBitmap*) SK_OVERRIDE; | 65 virtual bool onDecodeInto(int pow2, SkBitmap*) SK_OVERRIDE; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 bool fErrorInDecoding; | 68 bool fErrorInDecoding; |
| 69 SkData* fData; | 69 SkData* fData; |
| 70 SkBitmapFactory::DecodeProc fDecodeProc; | 70 SkBitmapFactory::DecodeProc fDecodeProc; |
| 71 SkImageCache* fImageCache; | 71 SkImageCache* fImageCache; |
| 72 intptr_t fCacheId; | 72 intptr_t fCacheId; |
| 73 size_t fRowBytes; | 73 size_t fRowBytes; |
| 74 SkImage::Info fLazilyCachedInfo; |
| 74 | 75 |
| 75 #if LAZY_CACHE_STATS | 76 #if LAZY_CACHE_STATS |
| 76 static int32_t gCacheHits; | 77 static int32_t gCacheHits; |
| 77 static int32_t gCacheMisses; | 78 static int32_t gCacheMisses; |
| 78 #endif | 79 #endif |
| 79 | 80 |
| 81 // lazily initialized our cached info. Returns NULL on failure. |
| 82 const SkImage::Info* getCachedInfo(); |
| 83 |
| 80 typedef SkPixelRef INHERITED; | 84 typedef SkPixelRef INHERITED; |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 #endif // SkLazyPixelRef_DEFINED | 87 #endif // SkLazyPixelRef_DEFINED |
| OLD | NEW |