| 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 |
| 237 RECORD1(Clear, SkColor, color); | 238 RECORD1(Clear, SkColor, color); |
| 238 | 239 |
| 239 RECORD1(BeginCommentGroup, PODArray<char>, description); | 240 RECORD1(BeginCommentGroup, PODArray<char>, description); |
| 240 RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value); | 241 RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value); |
| 241 RECORD0(EndCommentGroup); | 242 RECORD0(EndCommentGroup); |
| 242 | 243 |
| 243 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. | 244 // While not strictly required, if you have an SkPaint, it's fastest to put it f
irst. |
| 244 RECORD4(DrawBitmap, Optional<SkPaint>, paint, | 245 RECORD4(DrawBitmap, Optional<SkPaint>, paint, |
| 245 ImmutableBitmap, bitmap, | 246 ImmutableBitmap, bitmap, |
| 246 SkScalar, left, | 247 SkScalar, left, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 #undef RECORD0 | 348 #undef RECORD0 |
| 348 #undef RECORD1 | 349 #undef RECORD1 |
| 349 #undef RECORD2 | 350 #undef RECORD2 |
| 350 #undef RECORD3 | 351 #undef RECORD3 |
| 351 #undef RECORD4 | 352 #undef RECORD4 |
| 352 #undef RECORD5 | 353 #undef RECORD5 |
| 353 | 354 |
| 354 } // namespace SkRecords | 355 } // namespace SkRecords |
| 355 | 356 |
| 356 #endif//SkRecords_DEFINED | 357 #endif//SkRecords_DEFINED |
| OLD | NEW |