OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |