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

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

Issue 195223003: Fixing SkPicture serialization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed nits 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
« 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 22 matching lines...) Expand all
33 class SkPictureStateTree; 33 class SkPictureStateTree;
34 class SkOffsetTable; 34 class SkOffsetTable;
35 35
36 struct SkPictInfo { 36 struct SkPictInfo {
37 enum Flags { 37 enum Flags {
38 kCrossProcess_Flag = 1 << 0, 38 kCrossProcess_Flag = 1 << 0,
39 kScalarIsFloat_Flag = 1 << 1, 39 kScalarIsFloat_Flag = 1 << 1,
40 kPtrIs64Bit_Flag = 1 << 2, 40 kPtrIs64Bit_Flag = 1 << 2,
41 }; 41 };
42 42
43 char fMagic[8];
43 uint32_t fVersion; 44 uint32_t fVersion;
44 uint32_t fWidth; 45 uint32_t fWidth;
45 uint32_t fHeight; 46 uint32_t fHeight;
46 uint32_t fFlags; 47 uint32_t fFlags;
47 }; 48 };
48 49
49 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') 50 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd')
50 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') 51 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't')
51 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') 52 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c')
52 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') 53 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r')
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 239
239 SkTypefacePlayback fTFPlayback; 240 SkTypefacePlayback fTFPlayback;
240 SkFactoryPlayback* fFactoryPlayback; 241 SkFactoryPlayback* fFactoryPlayback;
241 #ifdef SK_BUILD_FOR_ANDROID 242 #ifdef SK_BUILD_FOR_ANDROID
242 SkMutex fDrawMutex; 243 SkMutex fDrawMutex;
243 bool fAbortCurrentPlayback; 244 bool fAbortCurrentPlayback;
244 #endif 245 #endif
245 }; 246 };
246 247
247 #endif 248 #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