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 19 matching lines...) Expand all Loading... |
30 M(Save) \ | 30 M(Save) \ |
31 M(SaveLayer) \ | 31 M(SaveLayer) \ |
32 M(PushCull) \ | 32 M(PushCull) \ |
33 M(PopCull) \ | 33 M(PopCull) \ |
34 M(SetMatrix) \ | 34 M(SetMatrix) \ |
35 M(ClipPath) \ | 35 M(ClipPath) \ |
36 M(ClipRRect) \ | 36 M(ClipRRect) \ |
37 M(ClipRect) \ | 37 M(ClipRect) \ |
38 M(ClipRegion) \ | 38 M(ClipRegion) \ |
39 M(Clear) \ | 39 M(Clear) \ |
| 40 M(BeginCommentGroup) \ |
| 41 M(AddComment) \ |
| 42 M(EndCommentGroup) \ |
40 M(DrawBitmap) \ | 43 M(DrawBitmap) \ |
41 M(DrawBitmapMatrix) \ | 44 M(DrawBitmapMatrix) \ |
42 M(DrawBitmapNine) \ | 45 M(DrawBitmapNine) \ |
43 M(DrawBitmapRectToRect) \ | 46 M(DrawBitmapRectToRect) \ |
44 M(DrawDRRect) \ | 47 M(DrawDRRect) \ |
45 M(DrawOval) \ | 48 M(DrawOval) \ |
46 M(DrawPaint) \ | 49 M(DrawPaint) \ |
47 M(DrawPath) \ | 50 M(DrawPath) \ |
48 M(DrawPatch) \ | 51 M(DrawPatch) \ |
49 M(DrawPicture) \ | 52 M(DrawPicture) \ |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 RECORD0(PopCull); | 207 RECORD0(PopCull); |
205 | 208 |
206 RECORD1(SetMatrix, SkMatrix, matrix); | 209 RECORD1(SetMatrix, SkMatrix, matrix); |
207 | 210 |
208 RECORD4(ClipPath, SkIRect, devBounds, SkPath, path, SkRegion::Op, op, bool
, doAA); | 211 RECORD4(ClipPath, SkIRect, devBounds, SkPath, path, SkRegion::Op, op, bool
, doAA); |
209 RECORD4(ClipRRect, SkIRect, devBounds, SkRRect, rrect, SkRegion::Op, op, bool
, doAA); | 212 RECORD4(ClipRRect, SkIRect, devBounds, SkRRect, rrect, SkRegion::Op, op, bool
, doAA); |
210 RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool
, doAA); | 213 RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool
, doAA); |
211 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); | 214 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); |
212 | 215 |
213 RECORD1(Clear, SkColor, color); | 216 RECORD1(Clear, SkColor, color); |
| 217 |
| 218 RECORD1(BeginCommentGroup, PODArray<char>, description); |
| 219 RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value); |
| 220 RECORD0(EndCommentGroup); |
| 221 |
214 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. | 222 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. |
215 RECORD4(DrawBitmap, Optional<SkPaint>, paint, | 223 RECORD4(DrawBitmap, Optional<SkPaint>, paint, |
216 ImmutableBitmap, bitmap, | 224 ImmutableBitmap, bitmap, |
217 SkScalar, left, | 225 SkScalar, left, |
218 SkScalar, top); | 226 SkScalar, top); |
219 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkM
atrix, matrix); | 227 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkM
atrix, matrix); |
220 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, | 228 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, |
221 ImmutableBitmap, bitmap, | 229 ImmutableBitmap, bitmap, |
222 SkIRect, center, | 230 SkIRect, center, |
223 SkRect, dst); | 231 SkRect, dst); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 #undef RECORD0 | 325 #undef RECORD0 |
318 #undef RECORD1 | 326 #undef RECORD1 |
319 #undef RECORD2 | 327 #undef RECORD2 |
320 #undef RECORD3 | 328 #undef RECORD3 |
321 #undef RECORD4 | 329 #undef RECORD4 |
322 #undef RECORD5 | 330 #undef RECORD5 |
323 | 331 |
324 } // namespace SkRecords | 332 } // namespace SkRecords |
325 | 333 |
326 #endif//SkRecords_DEFINED | 334 #endif//SkRecords_DEFINED |
OLD | NEW |