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

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

Issue 244273002: fix size_t/int warnings in pictures (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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/core/SkPictureFlat.h ('k') | src/core/SkPicturePlayback.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkPicturePlayback_DEFINED 8 #ifndef SkPicturePlayback_DEFINED
9 #define SkPicturePlayback_DEFINED 9 #define SkPicturePlayback_DEFINED
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int dumpRectPtr(char* bufferPtr, char* buffer, char* name); 208 int dumpRectPtr(char* bufferPtr, char* buffer, char* name);
209 int dumpScalar(char* bufferPtr, char* buffer, char* name); 209 int dumpScalar(char* bufferPtr, char* buffer, char* name);
210 void dumpText(char** bufferPtrPtr, char* buffer); 210 void dumpText(char** bufferPtrPtr, char* buffer);
211 void dumpStream(); 211 void dumpStream();
212 212
213 public: 213 public:
214 void dump() const; 214 void dump() const;
215 #endif 215 #endif
216 216
217 private: // these help us with reading/writing 217 private: // these help us with reading/writing
218 bool parseStreamTag(SkStream*, uint32_t tag, size_t size, SkPicture::Install PixelRefProc); 218 bool parseStreamTag(SkStream*, uint32_t tag, uint32_t size, SkPicture::Insta llPixelRefProc);
219 bool parseBufferTag(SkReadBuffer&, uint32_t tag, size_t size); 219 bool parseBufferTag(SkReadBuffer&, uint32_t tag, uint32_t size);
220 void flattenToBuffer(SkWriteBuffer&) const; 220 void flattenToBuffer(SkWriteBuffer&) const;
221 221
222 private: 222 private:
223 // Only used by getBitmap() if the passed in index is SkBitmapHeap::INVALID_ SLOT. This empty 223 // Only used by getBitmap() if the passed in index is SkBitmapHeap::INVALID_ SLOT. This empty
224 // bitmap allows playback to draw nothing and move on. 224 // bitmap allows playback to draw nothing and move on.
225 SkBitmap fBadBitmap; 225 SkBitmap fBadBitmap;
226 226
227 SkAutoTUnref<SkBitmapHeap> fBitmapHeap; 227 SkAutoTUnref<SkBitmapHeap> fBitmapHeap;
228 SkAutoTUnref<SkPathHeap> fPathHeap; 228 SkAutoTUnref<SkPathHeap> fPathHeap;
229 229
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 const SkPictInfo fInfo; 270 const SkPictInfo fInfo;
271 271
272 #ifdef SK_BUILD_FOR_ANDROID 272 #ifdef SK_BUILD_FOR_ANDROID
273 SkMutex fDrawMutex; 273 SkMutex fDrawMutex;
274 bool fAbortCurrentPlayback; 274 bool fAbortCurrentPlayback;
275 #endif 275 #endif
276 }; 276 };
277 277
278 #endif 278 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureFlat.h ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698