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(DrawBitmapRectToRect) \ | 56 M(DrawBitmapRectToRect) \ |
57 M(DrawDRRect) \ | 57 M(DrawDRRect) \ |
58 M(DrawOval) \ | 58 M(DrawOval) \ |
59 M(DrawPaint) \ | 59 M(DrawPaint) \ |
60 M(DrawPath) \ | 60 M(DrawPath) \ |
61 M(DrawPatch) \ | 61 M(DrawPatch) \ |
62 M(DrawPicture) \ | 62 M(DrawPicture) \ |
63 M(DrawPoints) \ | 63 M(DrawPoints) \ |
64 M(DrawPosText) \ | 64 M(DrawPosText) \ |
65 M(DrawPosTextH) \ | 65 M(DrawPosTextH) \ |
| 66 M(DrawText) \ |
| 67 M(DrawTextOnPath) \ |
66 M(DrawRRect) \ | 68 M(DrawRRect) \ |
67 M(DrawRect) \ | 69 M(DrawRect) \ |
68 M(DrawSprite) \ | 70 M(DrawSprite) \ |
69 M(DrawText) \ | |
70 M(DrawTextOnPath) \ | |
71 M(DrawVertices) | 71 M(DrawVertices) |
72 | 72 |
73 // Defines SkRecords::Type, an enum of all record types. | 73 // Defines SkRecords::Type, an enum of all record types. |
74 #define ENUM(T) T##_Type, | 74 #define ENUM(T) T##_Type, |
75 enum Type { SK_RECORD_TYPES(ENUM) }; | 75 enum Type { SK_RECORD_TYPES(ENUM) }; |
76 #undef ENUM | 76 #undef ENUM |
77 | 77 |
78 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar
gs, 2 args, etc. | 78 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar
gs, 2 args, etc. |
79 // These should be clearer when you look at their use below. | 79 // These should be clearer when you look at their use below. |
80 #define RECORD0(T) \ | 80 #define RECORD0(T) \ |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 #undef RECORD0 | 311 #undef RECORD0 |
312 #undef RECORD1 | 312 #undef RECORD1 |
313 #undef RECORD2 | 313 #undef RECORD2 |
314 #undef RECORD3 | 314 #undef RECORD3 |
315 #undef RECORD4 | 315 #undef RECORD4 |
316 #undef RECORD5 | 316 #undef RECORD5 |
317 | 317 |
318 } // namespace SkRecords | 318 } // namespace SkRecords |
319 | 319 |
320 #endif//SkRecords_DEFINED | 320 #endif//SkRecords_DEFINED |
OLD | NEW |