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 22 matching lines...) Expand all Loading... |
33 M(Restore) \ | 33 M(Restore) \ |
34 M(Save) \ | 34 M(Save) \ |
35 M(SaveLayer) \ | 35 M(SaveLayer) \ |
36 M(SetMatrix) \ | 36 M(SetMatrix) \ |
37 M(ClipPath) \ | 37 M(ClipPath) \ |
38 M(ClipRRect) \ | 38 M(ClipRRect) \ |
39 M(ClipRect) \ | 39 M(ClipRect) \ |
40 M(ClipRegion) \ | 40 M(ClipRegion) \ |
41 M(DrawBitmap) \ | 41 M(DrawBitmap) \ |
42 M(DrawBitmapNine) \ | 42 M(DrawBitmapNine) \ |
43 M(DrawBitmapRectToRect) \ | 43 M(DrawBitmapRect) \ |
44 M(DrawBitmapRectToRectBleed) \ | 44 M(DrawBitmapRectFast) \ |
45 M(DrawBitmapRectToRectFixedSize) \ | 45 M(DrawBitmapRectFixedSize) \ |
46 M(DrawDrawable) \ | 46 M(DrawDrawable) \ |
47 M(DrawImage) \ | 47 M(DrawImage) \ |
48 M(DrawImageRect) \ | 48 M(DrawImageRect) \ |
49 M(DrawImageNine) \ | 49 M(DrawImageNine) \ |
50 M(DrawDRRect) \ | 50 M(DrawDRRect) \ |
51 M(DrawOval) \ | 51 M(DrawOval) \ |
52 M(DrawPaint) \ | 52 M(DrawPaint) \ |
53 M(DrawPath) \ | 53 M(DrawPath) \ |
54 M(DrawPatch) \ | 54 M(DrawPatch) \ |
55 M(DrawPicture) \ | 55 M(DrawPicture) \ |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. | 270 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. |
271 RECORD4(DrawBitmap, Optional<SkPaint>, paint, | 271 RECORD4(DrawBitmap, Optional<SkPaint>, paint, |
272 ImmutableBitmap, bitmap, | 272 ImmutableBitmap, bitmap, |
273 SkScalar, left, | 273 SkScalar, left, |
274 SkScalar, top); | 274 SkScalar, top); |
275 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, | 275 RECORD4(DrawBitmapNine, Optional<SkPaint>, paint, |
276 ImmutableBitmap, bitmap, | 276 ImmutableBitmap, bitmap, |
277 SkIRect, center, | 277 SkIRect, center, |
278 SkRect, dst); | 278 SkRect, dst); |
279 RECORD4(DrawBitmapRectToRect, Optional<SkPaint>, paint, | 279 RECORD4(DrawBitmapRect, Optional<SkPaint>, paint, |
280 ImmutableBitmap, bitmap, | 280 ImmutableBitmap, bitmap, |
281 Optional<SkRect>, src, | 281 Optional<SkRect>, src, |
282 SkRect, dst); | 282 SkRect, dst); |
283 RECORD4(DrawBitmapRectToRectBleed, Optional<SkPaint>, paint, | 283 RECORD4(DrawBitmapRectFast, Optional<SkPaint>, paint, |
284 ImmutableBitmap, bitmap, | 284 ImmutableBitmap, bitmap, |
285 Optional<SkRect>, src, | 285 Optional<SkRect>, src, |
286 SkRect, dst); | 286 SkRect, dst); |
287 RECORD5(DrawBitmapRectToRectFixedSize, SkPaint, paint, | 287 RECORD5(DrawBitmapRectFixedSize, SkPaint, paint, |
288 ImmutableBitmap, bitmap, | 288 ImmutableBitmap, bitmap, |
289 SkRect, src, | 289 SkRect, src, |
290 SkRect, dst, | 290 SkRect, dst, |
291 SkCanvas::DrawBitmapRectFlags, flags); | 291 SkCanvas::SrcRectConstraint, constraint); |
292 RECORD3(DrawDRRect, SkPaint, paint, SkRRect, outer, SkRRect, inner); | 292 RECORD3(DrawDRRect, SkPaint, paint, SkRRect, outer, SkRRect, inner); |
293 RECORD3(DrawDrawable, Optional<SkMatrix>, matrix, SkRect, worstCaseBounds, int32
_t, index); | 293 RECORD3(DrawDrawable, Optional<SkMatrix>, matrix, SkRect, worstCaseBounds, int32
_t, index); |
294 RECORD4(DrawImage, Optional<SkPaint>, paint, | 294 RECORD4(DrawImage, Optional<SkPaint>, paint, |
295 RefBox<const SkImage>, image, | 295 RefBox<const SkImage>, image, |
296 SkScalar, left, | 296 SkScalar, left, |
297 SkScalar, top); | 297 SkScalar, top); |
298 RECORD4(DrawImageRect, Optional<SkPaint>, paint, | 298 RECORD5(DrawImageRect, Optional<SkPaint>, paint, |
299 RefBox<const SkImage>, image, | 299 RefBox<const SkImage>, image, |
300 Optional<SkRect>, src, | 300 Optional<SkRect>, src, |
301 SkRect, dst); | 301 SkRect, dst, |
| 302 SkCanvas::SrcRectConstraint, constraint); |
302 RECORD4(DrawImageNine, Optional<SkPaint>, paint, | 303 RECORD4(DrawImageNine, Optional<SkPaint>, paint, |
303 RefBox<const SkImage>, image, | 304 RefBox<const SkImage>, image, |
304 SkIRect, center, | 305 SkIRect, center, |
305 SkRect, dst); | 306 SkRect, dst); |
306 RECORD2(DrawOval, SkPaint, paint, SkRect, oval); | 307 RECORD2(DrawOval, SkPaint, paint, SkRect, oval); |
307 RECORD1(DrawPaint, SkPaint, paint); | 308 RECORD1(DrawPaint, SkPaint, paint); |
308 RECORD2(DrawPath, SkPaint, paint, PreCachedPath, path); | 309 RECORD2(DrawPath, SkPaint, paint, PreCachedPath, path); |
309 RECORD3(DrawPicture, Optional<SkPaint>, paint, | 310 RECORD3(DrawPicture, Optional<SkPaint>, paint, |
310 RefBox<const SkPicture>, picture, | 311 RefBox<const SkPicture>, picture, |
311 TypedMatrix, matrix); | 312 TypedMatrix, matrix); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 #undef RECORD1 | 391 #undef RECORD1 |
391 #undef RECORD2 | 392 #undef RECORD2 |
392 #undef RECORD3 | 393 #undef RECORD3 |
393 #undef RECORD4 | 394 #undef RECORD4 |
394 #undef RECORD5 | 395 #undef RECORD5 |
395 #undef RECORD8 | 396 #undef RECORD8 |
396 | 397 |
397 } // namespace SkRecords | 398 } // namespace SkRecords |
398 | 399 |
399 #endif//SkRecords_DEFINED | 400 #endif//SkRecords_DEFINED |
OLD | NEW |