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

Side by Side Diff: src/core/SkPictureData.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « src/core/SkPictureContentInfo.cpp ('k') | src/core/SkPictureData.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 2011 Google Inc. 2 * Copyright 2011 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 SkPictureData_DEFINED 8 #ifndef SkPictureData_DEFINED
9 #define SkPictureData_DEFINED 9 #define SkPictureData_DEFINED
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 const SkTextBlob* getTextBlob(SkReader32* reader) const { 136 const SkTextBlob* getTextBlob(SkReader32* reader) const {
137 int index = reader->readInt(); 137 int index = reader->readInt();
138 SkASSERT(index > 0 && index <= fTextBlobCount); 138 SkASSERT(index > 0 && index <= fTextBlobCount);
139 return fTextBlobRefs[index - 1]; 139 return fTextBlobRefs[index - 1];
140 } 140 }
141 141
142 void initIterator(SkPictureStateTree::Iterator* iter, 142 void initIterator(SkPictureStateTree::Iterator* iter,
143 const SkTDArray<void*>& draws, 143 const SkTDArray<void*>& draws,
144 SkCanvas* canvas) const { 144 SkCanvas* canvas) const {
145 if (NULL != fStateTree) { 145 if (fStateTree) {
146 fStateTree->initIterator(iter, draws, canvas); 146 fStateTree->initIterator(iter, draws, canvas);
147 } 147 }
148 } 148 }
149 149
150 #if SK_SUPPORT_GPU 150 #if SK_SUPPORT_GPU
151 /** 151 /**
152 * sampleCount is the number of samples-per-pixel or zero if non-MSAA. 152 * sampleCount is the number of samples-per-pixel or zero if non-MSAA.
153 * It is defaulted to be zero. 153 * It is defaulted to be zero.
154 */ 154 */
155 bool suitableForGpuRasterization(GrContext* context, const char **reason, 155 bool suitableForGpuRasterization(GrContext* context, const char **reason,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 const SkPictInfo fInfo; 204 const SkPictInfo fInfo;
205 205
206 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); 206 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec);
207 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); 207 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec);
208 208
209 void initForPlayback() const; 209 void initForPlayback() const;
210 }; 210 };
211 211
212 #endif 212 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureContentInfo.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698