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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 74 |
75 const SkImage::Info* getInfo(); | |
scroggo
2013/10/21 18:34:17
Could you add comments that fInfo should never be
reed1
2013/10/21 18:46:10
Done.
| |
76 | |
77 SkImage::Info fInfo; | |
scroggo
2013/10/21 18:34:17
Style nit: fields before methods
reed1
2013/10/21 18:46:10
Done.
| |
78 | |
75 #if LAZY_CACHE_STATS | 79 #if LAZY_CACHE_STATS |
76 static int32_t gCacheHits; | 80 static int32_t gCacheHits; |
77 static int32_t gCacheMisses; | 81 static int32_t gCacheMisses; |
78 #endif | 82 #endif |
79 | 83 |
80 typedef SkPixelRef INHERITED; | 84 typedef SkPixelRef INHERITED; |
81 }; | 85 }; |
82 | 86 |
83 #endif // SkLazyPixelRef_DEFINED | 87 #endif // SkLazyPixelRef_DEFINED |
OLD | NEW |