OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |