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

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

Issue 100723005: Update all callsites to use info for pixelrefs (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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/images/SkImageRef_ashmem.cpp ('k') | src/lazy/SkCachingPixelRef.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 2013 Google Inc. 2 * Copyright 2013 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 SkCachingPixelRef_DEFINED 8 #ifndef SkCachingPixelRef_DEFINED
9 #define SkCachingPixelRef_DEFINED 9 #define SkCachingPixelRef_DEFINED
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // SkOrderedWriteBuffer will check the encoded data and write that 51 // SkOrderedWriteBuffer will check the encoded data and write that
52 // instead. 52 // instead.
53 // Future implementations of SkFlattenableWriteBuffer will need to 53 // Future implementations of SkFlattenableWriteBuffer will need to
54 // special case for onRefEncodedData as well. 54 // special case for onRefEncodedData as well.
55 SK_DECLARE_UNFLATTENABLE_OBJECT() 55 SK_DECLARE_UNFLATTENABLE_OBJECT()
56 56
57 private: 57 private:
58 SkImageGenerator* const fImageGenerator; 58 SkImageGenerator* const fImageGenerator;
59 bool fErrorInDecoding; 59 bool fErrorInDecoding;
60 void* fScaledCacheId; 60 void* fScaledCacheId;
61 const SkImageInfo fInfo;
62 const size_t fRowBytes; 61 const size_t fRowBytes;
63 62
64 SkCachingPixelRef(SkImageGenerator* imageGenerator, 63 SkCachingPixelRef(const SkImageInfo&, SkImageGenerator*, size_t rowBytes);
65 const SkImageInfo& info, 64
66 size_t rowBytes);
67 typedef SkPixelRef INHERITED; 65 typedef SkPixelRef INHERITED;
68 }; 66 };
69 67
70 #endif // SkCachingPixelRef_DEFINED 68 #endif // SkCachingPixelRef_DEFINED
OLDNEW
« no previous file with comments | « src/images/SkImageRef_ashmem.cpp ('k') | src/lazy/SkCachingPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698