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

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

Issue 12433020: Improvements/additions to SkImageCache/SkLazyPixelRef. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Respond to comments. Created 7 years, 9 months 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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