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

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

Issue 513983002: Try out scalar picture sizes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT again 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/SkPicture.cpp ('k') | src/core/SkPictureRecorder.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 19 matching lines...) Expand all
30 30
31 struct SkPictInfo { 31 struct SkPictInfo {
32 enum Flags { 32 enum Flags {
33 kCrossProcess_Flag = 1 << 0, 33 kCrossProcess_Flag = 1 << 0,
34 kScalarIsFloat_Flag = 1 << 1, 34 kScalarIsFloat_Flag = 1 << 1,
35 kPtrIs64Bit_Flag = 1 << 2, 35 kPtrIs64Bit_Flag = 1 << 2,
36 }; 36 };
37 37
38 char fMagic[8]; 38 char fMagic[8];
39 uint32_t fVersion; 39 uint32_t fVersion;
40 uint32_t fWidth; 40 SkRect fCullRect;
41 uint32_t fHeight;
42 uint32_t fFlags; 41 uint32_t fFlags;
43 }; 42 };
44 43
45 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') 44 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd')
46 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') 45 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't')
47 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') 46 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c')
48 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') 47 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r')
49 48
50 // This tag specifies the size of the ReadBuffer, needed for the following tags 49 // This tag specifies the size of the ReadBuffer, needed for the following tags
51 #define SK_PICT_BUFFER_SIZE_TAG SkSetFourByteTag('a', 'r', 'a', 'y') 50 #define SK_PICT_BUFFER_SIZE_TAG SkSetFourByteTag('a', 'r', 'a', 'y')
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 203
205 const SkPictInfo fInfo; 204 const SkPictInfo fInfo;
206 205
207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); 206 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec);
208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); 207 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec);
209 208
210 void initForPlayback() const; 209 void initForPlayback() const;
211 }; 210 };
212 211
213 #endif 212 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698