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

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

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: Address comments Created 4 years, 4 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/SkLiteRecorder.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 * 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 #ifndef SkPictureFlat_DEFINED 7 #ifndef SkPictureFlat_DEFINED
8 #define SkPictureFlat_DEFINED 8 #define SkPictureFlat_DEFINED
9 9
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 DRAW_ANNOTATION, 86 DRAW_ANNOTATION,
87 DRAW_DRAWABLE, 87 DRAW_DRAWABLE,
88 DRAW_DRAWABLE_MATRIX, 88 DRAW_DRAWABLE_MATRIX,
89 DRAW_TEXT_RSXFORM, 89 DRAW_TEXT_RSXFORM,
90 90
91 TRANSLATE_Z, 91 TRANSLATE_Z,
92 92
93 DRAW_SHADOWED_PICTURE_LIGHTS, 93 DRAW_SHADOWED_PICTURE_LIGHTS,
94 DRAW_IMAGE_LATTICE, 94 DRAW_IMAGE_LATTICE,
95 DRAW_ARC,
95 96
96 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_LATTICE 97 LAST_DRAWTYPE_ENUM = DRAW_ARC
97 }; 98 };
98 99
99 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 100 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
100 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 101 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
101 102
102 enum DrawVertexFlags { 103 enum DrawVertexFlags {
103 DRAW_VERTICES_HAS_TEXS = 0x01, 104 DRAW_VERTICES_HAS_TEXS = 0x01,
104 DRAW_VERTICES_HAS_COLORS = 0x02, 105 DRAW_VERTICES_HAS_COLORS = 0x02,
105 DRAW_VERTICES_HAS_INDICES = 0x04, 106 DRAW_VERTICES_HAS_INDICES = 0x04,
106 DRAW_VERTICES_HAS_XFER = 0x08, 107 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void setupBuffer(SkReadBuffer& buffer) const { 174 void setupBuffer(SkReadBuffer& buffer) const {
174 buffer.setFactoryPlayback(fArray, fCount); 175 buffer.setFactoryPlayback(fArray, fCount);
175 } 176 }
176 177
177 private: 178 private:
178 int fCount; 179 int fCount;
179 SkFlattenable::Factory* fArray; 180 SkFlattenable::Factory* fArray;
180 }; 181 };
181 182
182 #endif 183 #endif
OLDNEW
« no previous file with comments | « src/core/SkLiteRecorder.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698