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

Side by Side Diff: include/private/SkRecords.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 | « include/core/SkDevice.h ('k') | include/utils/SkDumpCanvas.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 SkRecords_DEFINED 8 #ifndef SkRecords_DEFINED
9 #define SkRecords_DEFINED 9 #define SkRecords_DEFINED
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 M(Restore) \ 46 M(Restore) \
47 M(Save) \ 47 M(Save) \
48 M(SaveLayer) \ 48 M(SaveLayer) \
49 M(SetMatrix) \ 49 M(SetMatrix) \
50 M(TranslateZ) \ 50 M(TranslateZ) \
51 M(Concat) \ 51 M(Concat) \
52 M(ClipPath) \ 52 M(ClipPath) \
53 M(ClipRRect) \ 53 M(ClipRRect) \
54 M(ClipRect) \ 54 M(ClipRect) \
55 M(ClipRegion) \ 55 M(ClipRegion) \
56 M(DrawArc) \
56 M(DrawDrawable) \ 57 M(DrawDrawable) \
57 M(DrawImage) \ 58 M(DrawImage) \
58 M(DrawImageLattice) \ 59 M(DrawImageLattice) \
59 M(DrawImageRect) \ 60 M(DrawImageRect) \
60 M(DrawImageNine) \ 61 M(DrawImageNine) \
61 M(DrawDRRect) \ 62 M(DrawDRRect) \
62 M(DrawOval) \ 63 M(DrawOval) \
63 M(DrawPaint) \ 64 M(DrawPaint) \
64 M(DrawPath) \ 65 M(DrawPath) \
65 M(DrawPatch) \ 66 M(DrawPatch) \
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 RECORD(ClipRect, 0, 204 RECORD(ClipRect, 0,
204 SkIRect devBounds; 205 SkIRect devBounds;
205 SkRect rect; 206 SkRect rect;
206 RegionOpAndAA opAA); 207 RegionOpAndAA opAA);
207 RECORD(ClipRegion, 0, 208 RECORD(ClipRegion, 0,
208 SkIRect devBounds; 209 SkIRect devBounds;
209 SkRegion region; 210 SkRegion region;
210 SkRegion::Op op); 211 SkRegion::Op op);
211 212
212 // While not strictly required, if you have an SkPaint, it's fastest to put it f irst. 213 // While not strictly required, if you have an SkPaint, it's fastest to put it f irst.
214 RECORD(DrawArc, kDraw_Tag|kHasPaint_Tag,
215 SkPaint paint;
216 SkRect oval;
217 SkScalar startAngle;
218 SkScalar sweepAngle;
219 unsigned useCenter);
213 RECORD(DrawDRRect, kDraw_Tag|kHasPaint_Tag, 220 RECORD(DrawDRRect, kDraw_Tag|kHasPaint_Tag,
214 SkPaint paint; 221 SkPaint paint;
215 SkRRect outer; 222 SkRRect outer;
216 SkRRect inner); 223 SkRRect inner);
217 RECORD(DrawDrawable, kDraw_Tag, 224 RECORD(DrawDrawable, kDraw_Tag,
218 Optional<SkMatrix> matrix; 225 Optional<SkMatrix> matrix;
219 SkRect worstCaseBounds; 226 SkRect worstCaseBounds;
220 int32_t index); 227 int32_t index);
221 RECORD(DrawImage, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag, 228 RECORD(DrawImage, kDraw_Tag|kHasImage_Tag|kHasPaint_Tag,
222 Optional<SkPaint> paint; 229 Optional<SkPaint> paint;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 int indexCount); 337 int indexCount);
331 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 338 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548
332 SkRect rect; 339 SkRect rect;
333 SkString key; 340 SkString key;
334 sk_sp<SkData> value); 341 sk_sp<SkData> value);
335 #undef RECORD 342 #undef RECORD
336 343
337 } // namespace SkRecords 344 } // namespace SkRecords
338 345
339 #endif//SkRecords_DEFINED 346 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698