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

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: Addressed code review issues Created 7 years, 6 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/SkCanvas.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 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_COMMENT_GROUP,
66 COMMENT,
67 END_COMMENT_GROUP,
65 68
66 LAST_DRAWTYPE_ENUM = NOOP 69 LAST_DRAWTYPE_ENUM = END_COMMENT_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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) { 717 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) {
715 buffer.getWriter32()->writeRegion(*(SkRegion*)obj); 718 buffer.getWriter32()->writeRegion(*(SkRegion*)obj);
716 } 719 }
717 720
718 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) { 721 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) {
719 buffer.getReader32()->readRegion((SkRegion*)obj); 722 buffer.getReader32()->readRegion((SkRegion*)obj);
720 } 723 }
721 }; 724 };
722 725
723 #endif 726 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698