Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/core/SkRecords.h

Issue 783493002: Change clear() to respect the clip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698