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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 M(DrawPicture) \ | 68 M(DrawPicture) \ |
69 M(DrawShadowedPicture) \ | 69 M(DrawShadowedPicture) \ |
70 M(DrawPoints) \ | 70 M(DrawPoints) \ |
71 M(DrawPosText) \ | 71 M(DrawPosText) \ |
72 M(DrawPosTextH) \ | 72 M(DrawPosTextH) \ |
73 M(DrawText) \ | 73 M(DrawText) \ |
74 M(DrawTextOnPath) \ | 74 M(DrawTextOnPath) \ |
75 M(DrawTextRSXform) \ | 75 M(DrawTextRSXform) \ |
76 M(DrawRRect) \ | 76 M(DrawRRect) \ |
77 M(DrawRect) \ | 77 M(DrawRect) \ |
| 78 M(DrawRegion) \ |
78 M(DrawTextBlob) \ | 79 M(DrawTextBlob) \ |
79 M(DrawAtlas) \ | 80 M(DrawAtlas) \ |
80 M(DrawVertices) \ | 81 M(DrawVertices) \ |
81 M(DrawAnnotation) | 82 M(DrawAnnotation) |
82 | 83 |
83 // Defines SkRecords::Type, an enum of all record types. | 84 // Defines SkRecords::Type, an enum of all record types. |
84 #define ENUM(T) T##_Type, | 85 #define ENUM(T) T##_Type, |
85 enum Type { SK_RECORD_TYPES(ENUM) }; | 86 enum Type { SK_RECORD_TYPES(ENUM) }; |
86 #undef ENUM | 87 #undef ENUM |
87 | 88 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 PODArray<char> text; | 285 PODArray<char> text; |
285 unsigned byteLength; | 286 unsigned byteLength; |
286 SkScalar y; | 287 SkScalar y; |
287 PODArray<SkScalar> xpos); | 288 PODArray<SkScalar> xpos); |
288 RECORD(DrawRRect, kDraw_Tag|kHasPaint_Tag, | 289 RECORD(DrawRRect, kDraw_Tag|kHasPaint_Tag, |
289 SkPaint paint; | 290 SkPaint paint; |
290 SkRRect rrect); | 291 SkRRect rrect); |
291 RECORD(DrawRect, kDraw_Tag|kHasPaint_Tag, | 292 RECORD(DrawRect, kDraw_Tag|kHasPaint_Tag, |
292 SkPaint paint; | 293 SkPaint paint; |
293 SkRect rect); | 294 SkRect rect); |
| 295 RECORD(DrawRegion, kDraw_Tag|kHasPaint_Tag, |
| 296 SkPaint paint; |
| 297 SkRegion region); |
294 RECORD(DrawText, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, | 298 RECORD(DrawText, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, |
295 SkPaint paint; | 299 SkPaint paint; |
296 PODArray<char> text; | 300 PODArray<char> text; |
297 size_t byteLength; | 301 size_t byteLength; |
298 SkScalar x; | 302 SkScalar x; |
299 SkScalar y); | 303 SkScalar y); |
300 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, | 304 RECORD(DrawTextBlob, kDraw_Tag|kHasText_Tag|kHasPaint_Tag, |
301 SkPaint paint; | 305 SkPaint paint; |
302 sk_sp<const SkTextBlob> blob; | 306 sk_sp<const SkTextBlob> blob; |
303 SkScalar x; | 307 SkScalar x; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 int indexCount); | 345 int indexCount); |
342 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 | 346 RECORD(DrawAnnotation, 0, // TODO: kDraw_Tag, skia:5548 |
343 SkRect rect; | 347 SkRect rect; |
344 SkString key; | 348 SkString key; |
345 sk_sp<SkData> value); | 349 sk_sp<SkData> value); |
346 #undef RECORD | 350 #undef RECORD |
347 | 351 |
348 } // namespace SkRecords | 352 } // namespace SkRecords |
349 | 353 |
350 #endif//SkRecords_DEFINED | 354 #endif//SkRecords_DEFINED |
OLD | NEW |