| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 private: | 70 private: |
| 71 bool fErrorInDecoding; | 71 bool fErrorInDecoding; |
| 72 SkData* fData; | 72 SkData* fData; |
| 73 SkBitmapFactory::DecodeProc fDecodeProc; | 73 SkBitmapFactory::DecodeProc fDecodeProc; |
| 74 SkImageCache* fImageCache; | 74 SkImageCache* fImageCache; |
| 75 union { | 75 union { |
| 76 SkImageCache::ID fCacheId; | 76 SkImageCache::ID fCacheId; |
| 77 SkScaledImageCache::ID* fScaledCacheId; | 77 SkScaledImageCache::ID* fScaledCacheId; |
| 78 }; | 78 }; |
| 79 size_t fRowBytes; | 79 size_t fRowBytes; |
| 80 SkImage::Info fLazilyCachedInfo; | 80 SkImageInfo fLazilyCachedInfo; |
| 81 | 81 |
| 82 #if LAZY_CACHE_STATS | 82 #if LAZY_CACHE_STATS |
| 83 static int32_t gCacheHits; | 83 static int32_t gCacheHits; |
| 84 static int32_t gCacheMisses; | 84 static int32_t gCacheMisses; |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 // lazily initialized our cached info. Returns NULL on failure. | 87 // lazily initialized our cached info. Returns NULL on failure. |
| 88 const SkImage::Info* getCachedInfo(); | 88 const SkImage::Info* getCachedInfo(); |
| 89 void* lockScaledImageCachePixels(); | 89 void* lockScaledImageCachePixels(); |
| 90 void* lockImageCachePixels(); | 90 void* lockImageCachePixels(); |
| 91 | 91 |
| 92 | 92 |
| 93 typedef SkPixelRef INHERITED; | 93 typedef SkPixelRef INHERITED; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // SkLazyPixelRef_DEFINED | 96 #endif // SkLazyPixelRef_DEFINED |
| OLD | NEW |