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

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

Issue 176863004: Add new skpinfo tool (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Next round of review changes Created 6 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/core/SkPicture.cpp ('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 27 matching lines...) Expand all
38 kScalarIsFloat_Flag = 1 << 1, 38 kScalarIsFloat_Flag = 1 << 1,
39 kPtrIs64Bit_Flag = 1 << 2, 39 kPtrIs64Bit_Flag = 1 << 2,
40 }; 40 };
41 41
42 uint32_t fVersion; 42 uint32_t fVersion;
43 uint32_t fWidth; 43 uint32_t fWidth;
44 uint32_t fHeight; 44 uint32_t fHeight;
45 uint32_t fFlags; 45 uint32_t fFlags;
46 }; 46 };
47 47
48 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd')
49 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't')
50 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c')
51 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r')
52
53 // This tag specifies the size of the ReadBuffer, needed for the following tags
54 #define SK_PICT_BUFFER_SIZE_TAG SkSetFourByteTag('a', 'r', 'a', 'y')
55 // these are all inside the ARRAYS tag
56 #define SK_PICT_BITMAP_BUFFER_TAG SkSetFourByteTag('b', 't', 'm', 'p')
57 #define SK_PICT_PAINT_BUFFER_TAG SkSetFourByteTag('p', 'n', 't', ' ')
58 #define SK_PICT_PATH_BUFFER_TAG SkSetFourByteTag('p', 't', 'h', ' ')
59
60 // Always write this guy last (with no length field afterwards)
61 #define SK_PICT_EOF_TAG SkSetFourByteTag('e', 'o', 'f', ' ')
62
48 /** 63 /**
49 * Container for data that is needed to deep copy a SkPicture. The container 64 * Container for data that is needed to deep copy a SkPicture. The container
50 * enables the data to be generated once and reused for subsequent copies. 65 * enables the data to be generated once and reused for subsequent copies.
51 */ 66 */
52 struct SkPictCopyInfo { 67 struct SkPictCopyInfo {
53 SkPictCopyInfo() : initialized(false), controller(1024) {} 68 SkPictCopyInfo() : initialized(false), controller(1024) {}
54 69
55 bool initialized; 70 bool initialized;
56 SkChunkFlatController controller; 71 SkChunkFlatController controller;
57 SkTDArray<SkFlatData*> paintData; 72 SkTDArray<SkFlatData*> paintData;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 234
220 SkTypefacePlayback fTFPlayback; 235 SkTypefacePlayback fTFPlayback;
221 SkFactoryPlayback* fFactoryPlayback; 236 SkFactoryPlayback* fFactoryPlayback;
222 #ifdef SK_BUILD_FOR_ANDROID 237 #ifdef SK_BUILD_FOR_ANDROID
223 SkMutex fDrawMutex; 238 SkMutex fDrawMutex;
224 bool fAbortCurrentPlayback; 239 bool fAbortCurrentPlayback;
225 #endif 240 #endif
226 }; 241 };
227 242
228 #endif 243 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698