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

Side by Side Diff: src/pipe/SkPipeFormat.h

Issue 2347593004: test/fix/tweak writePicture/readPicture (Closed)
Patch Set: remove dead code Created 4 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/pipe/SkPipeCanvas.cpp ('k') | src/pipe/SkPipeReader.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 2016 Google Inc. 2 * Copyright 2016 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 SkPipeFormat_DEFINED 8 #ifndef SkPipeFormat_DEFINED
9 #define SkPipeFormat_DEFINED 9 #define SkPipeFormat_DEFINED
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 kDrawPicture, // extra == picture_index 51 kDrawPicture, // extra == picture_index
52 kDrawAnnotation, // extra == (key_len_plus_1:23 << 1) else next 32 | has_ data:1 52 kDrawAnnotation, // extra == (key_len_plus_1:23 << 1) else next 32 | has_ data:1
53 53
54 kDefineImage, // extra == image_index 54 kDefineImage, // extra == image_index
55 kDefineTypeface, 55 kDefineTypeface,
56 kDefineFactory, // extra == factory_index (followed by padded getTypeNam e string) 56 kDefineFactory, // extra == factory_index (followed by padded getTypeNam e string)
57 kDefinePicture, // extra == 0 or forget_index + 1 (0 means we're definin g a new picture) 57 kDefinePicture, // extra == 0 or forget_index + 1 (0 means we're definin g a new picture)
58 kEndPicture, // extra == picture_index 58 kEndPicture, // extra == picture_index
59 kWriteImage, // extra == image_index 59 kWriteImage, // extra == image_index
60 kWritePicture, // extra == picture_index
60 }; 61 };
61 62
62 enum PaintUsage { 63 enum PaintUsage {
63 kText_PaintUsage = 1 << 0, 64 kText_PaintUsage = 1 << 0,
64 kTextBlob_PaintUsage = 1 << 1, 65 kTextBlob_PaintUsage = 1 << 1,
65 kGeometry_PaintUsage = 1 << 2, 66 kGeometry_PaintUsage = 1 << 2,
66 kImage_PaintUsage = 1 << 3, 67 kImage_PaintUsage = 1 << 3,
67 kSaveLayer_PaintUsage = 1 << 4, 68 kSaveLayer_PaintUsage = 1 << 4,
68 kDrawPaint_PaintUsage = 1 << 5, 69 kDrawPaint_PaintUsage = 1 << 5,
69 kVertices_PaintUsage = 1 << 6, 70 kVertices_PaintUsage = 1 << 6,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 212
212 static inline SkPipeVerb unpack_verb(uint32_t data) { 213 static inline SkPipeVerb unpack_verb(uint32_t data) {
213 return (SkPipeVerb)(data >> 24); 214 return (SkPipeVerb)(data >> 24);
214 } 215 }
215 216
216 static inline unsigned unpack_verb_extra(uint32_t data) { 217 static inline unsigned unpack_verb_extra(uint32_t data) {
217 return data & 0xFFFFFF; 218 return data & 0xFFFFFF;
218 } 219 }
219 220
220 #endif 221 #endif
OLDNEW
« no previous file with comments | « src/pipe/SkPipeCanvas.cpp ('k') | src/pipe/SkPipeReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698