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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 SkRegion::Op op : 31; // This really only needs to be 3, but there's no win
today to do so. | 227 SkRegion::Op op : 31; // This really only needs to be 3, but there's no win
today to do so. |
228 unsigned aa : 1; // MSVC won't pack an enum with an bool, so we call t
his an unsigned. | 228 unsigned aa : 1; // MSVC won't pack an enum with an bool, so we call t
his an unsigned. |
229 }; | 229 }; |
230 SK_COMPILE_ASSERT(sizeof(RegionOpAndAA) == 4, RegionOpAndAASize); | 230 SK_COMPILE_ASSERT(sizeof(RegionOpAndAA) == 4, RegionOpAndAASize); |
231 | 231 |
232 RECORD3(ClipPath, SkIRect, devBounds, BoundedPath, path, RegionOpAndAA, opAA); | 232 RECORD3(ClipPath, SkIRect, devBounds, BoundedPath, path, RegionOpAndAA, opAA); |
233 RECORD3(ClipRRect, SkIRect, devBounds, SkRRect, rrect, RegionOpAndAA, opAA); | 233 RECORD3(ClipRRect, SkIRect, devBounds, SkRRect, rrect, RegionOpAndAA, opAA); |
234 RECORD3(ClipRect, SkIRect, devBounds, SkRect, rect, RegionOpAndAA, opAA); | 234 RECORD3(ClipRect, SkIRect, devBounds, SkRect, rect, RegionOpAndAA, opAA); |
235 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); | 235 RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op); |
236 | 236 |
237 // Picture version 37 was last to record this op-code; clear is now non-virtual | |
238 RECORD1(Clear, SkColor, color); | 237 RECORD1(Clear, SkColor, color); |
239 | 238 |
240 RECORD1(BeginCommentGroup, PODArray<char>, description); | 239 RECORD1(BeginCommentGroup, PODArray<char>, description); |
241 RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value); | 240 RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value); |
242 RECORD0(EndCommentGroup); | 241 RECORD0(EndCommentGroup); |
243 | 242 |
244 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. | 243 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. |
245 RECORD4(DrawBitmap, Optional<SkPaint>, paint, | 244 RECORD4(DrawBitmap, Optional<SkPaint>, paint, |
246 ImmutableBitmap, bitmap, | 245 ImmutableBitmap, bitmap, |
247 SkScalar, left, | 246 SkScalar, left, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 #undef RECORD0 | 347 #undef RECORD0 |
349 #undef RECORD1 | 348 #undef RECORD1 |
350 #undef RECORD2 | 349 #undef RECORD2 |
351 #undef RECORD3 | 350 #undef RECORD3 |
352 #undef RECORD4 | 351 #undef RECORD4 |
353 #undef RECORD5 | 352 #undef RECORD5 |
354 | 353 |
355 } // namespace SkRecords | 354 } // namespace SkRecords |
356 | 355 |
357 #endif//SkRecords_DEFINED | 356 #endif//SkRecords_DEFINED |
OLD | NEW |