Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: src/lazy/SkLazyPixelRef.h

Issue 54363008: move SkImage::ColorType into SkColorType (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/lazy/SkBitmapFactory.cpp ('k') | src/lazy/SkLazyPixelRef.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/lazy/SkBitmapFactory.cpp ('k') | src/lazy/SkLazyPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698