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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 M(DrawPath) \ | 56 M(DrawPath) \ |
57 M(DrawPatch) \ | 57 M(DrawPatch) \ |
58 M(DrawPicture) \ | 58 M(DrawPicture) \ |
59 M(DrawPoints) \ | 59 M(DrawPoints) \ |
60 M(DrawPosText) \ | 60 M(DrawPosText) \ |
61 M(DrawPosTextH) \ | 61 M(DrawPosTextH) \ |
62 M(DrawText) \ | 62 M(DrawText) \ |
63 M(DrawTextOnPath) \ | 63 M(DrawTextOnPath) \ |
64 M(DrawRRect) \ | 64 M(DrawRRect) \ |
65 M(DrawRect) \ | 65 M(DrawRect) \ |
66 M(DrawSprite) \ | |
67 M(DrawTextBlob) \ | 66 M(DrawTextBlob) \ |
68 M(DrawAtlas) \ | 67 M(DrawAtlas) \ |
69 M(DrawVertices) | 68 M(DrawVertices) |
70 | 69 |
71 // Defines SkRecords::Type, an enum of all record types. | 70 // Defines SkRecords::Type, an enum of all record types. |
72 #define ENUM(T) T##_Type, | 71 #define ENUM(T) T##_Type, |
73 enum Type { SK_RECORD_TYPES(ENUM) }; | 72 enum Type { SK_RECORD_TYPES(ENUM) }; |
74 #undef ENUM | 73 #undef ENUM |
75 | 74 |
76 #define ACT_AS_PTR(ptr) \ | 75 #define ACT_AS_PTR(ptr) \ |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 PODArray<char> text; | 307 PODArray<char> text; |
309 unsigned byteLength; | 308 unsigned byteLength; |
310 SkScalar y; | 309 SkScalar y; |
311 PODArray<SkScalar> xpos); | 310 PODArray<SkScalar> xpos); |
312 RECORD(DrawRRect, kDraw_Tag, | 311 RECORD(DrawRRect, kDraw_Tag, |
313 SkPaint paint; | 312 SkPaint paint; |
314 SkRRect rrect); | 313 SkRRect rrect); |
315 RECORD(DrawRect, kDraw_Tag, | 314 RECORD(DrawRect, kDraw_Tag, |
316 SkPaint paint; | 315 SkPaint paint; |
317 SkRect rect); | 316 SkRect rect); |
318 RECORD(DrawSprite, kDraw_Tag|kHasImage_Tag, | |
319 Optional<SkPaint> paint; | |
320 ImmutableBitmap bitmap; | |
321 int left; | |
322 int top); | |
323 RECORD(DrawText, kDraw_Tag|kHasText_Tag, | 317 RECORD(DrawText, kDraw_Tag|kHasText_Tag, |
324 SkPaint paint; | 318 SkPaint paint; |
325 PODArray<char> text; | 319 PODArray<char> text; |
326 size_t byteLength; | 320 size_t byteLength; |
327 SkScalar x; | 321 SkScalar x; |
328 SkScalar y); | 322 SkScalar y); |
329 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag, | 323 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag, |
330 SkPaint paint; | 324 SkPaint paint; |
331 RefBox<const SkTextBlob> blob; | 325 RefBox<const SkTextBlob> blob; |
332 SkScalar x; | 326 SkScalar x; |
(...skipping 28 matching lines...) Expand all Loading... |
361 PODArray<SkColor> colors; | 355 PODArray<SkColor> colors; |
362 RefBox<SkXfermode> xmode; | 356 RefBox<SkXfermode> xmode; |
363 PODArray<uint16_t> indices; | 357 PODArray<uint16_t> indices; |
364 int indexCount); | 358 int indexCount); |
365 | 359 |
366 #undef RECORD | 360 #undef RECORD |
367 | 361 |
368 } // namespace SkRecords | 362 } // namespace SkRecords |
369 | 363 |
370 #endif//SkRecords_DEFINED | 364 #endif//SkRecords_DEFINED |
OLD | NEW |