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

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

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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
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 SkPictureFlat_DEFINED 8 #ifndef SkPictureFlat_DEFINED
9 #define SkPictureFlat_DEFINED 9 #define SkPictureFlat_DEFINED
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 DRAW_VERTICES, 55 DRAW_VERTICES,
56 RESTORE, 56 RESTORE,
57 ROTATE, 57 ROTATE,
58 SAVE, 58 SAVE,
59 SAVE_LAYER, 59 SAVE_LAYER,
60 SCALE, 60 SCALE,
61 SET_MATRIX, 61 SET_MATRIX,
62 SKEW, 62 SKEW,
63 TRANSLATE, 63 TRANSLATE,
64 NOOP, 64 NOOP,
65 BEGIN_GROUP,
66 COMMENT,
67 END_GROUP,
65 68
66 LAST_DRAWTYPE_ENUM = NOOP 69 LAST_DRAWTYPE_ENUM = END_GROUP
67 }; 70 };
68 71
69 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 72 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
70 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 73 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
71 74
72 enum DrawVertexFlags { 75 enum DrawVertexFlags {
73 DRAW_VERTICES_HAS_TEXS = 0x01, 76 DRAW_VERTICES_HAS_TEXS = 0x01,
74 DRAW_VERTICES_HAS_COLORS = 0x02, 77 DRAW_VERTICES_HAS_COLORS = 0x02,
75 DRAW_VERTICES_HAS_INDICES = 0x04 78 DRAW_VERTICES_HAS_INDICES = 0x04
76 }; 79 };
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) { 712 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) {
710 buffer.getWriter32()->writeRegion(*(SkRegion*)obj); 713 buffer.getWriter32()->writeRegion(*(SkRegion*)obj);
711 } 714 }
712 715
713 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) { 716 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) {
714 buffer.getReader32()->readRegion((SkRegion*)obj); 717 buffer.getReader32()->readRegion((SkRegion*)obj);
715 } 718 }
716 }; 719 };
717 720
718 #endif 721 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698