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

Side by Side Diff: include/private/SkRecords.h

Issue 1533953002: change signature for virtual related to saveLayer, passing SaveLayerRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 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 | « include/core/SkCanvas.h ('k') | include/utils/SkDumpCanvas.h » ('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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 RECORD(NoOp, 0); 191 RECORD(NoOp, 0);
192 RECORD(Restore, 0, 192 RECORD(Restore, 0,
193 SkIRect devBounds; 193 SkIRect devBounds;
194 TypedMatrix matrix); 194 TypedMatrix matrix);
195 RECORD(Save, 0); 195 RECORD(Save, 0);
196 196
197 RECORD(SaveLayer, 0, 197 RECORD(SaveLayer, 0,
198 Optional<SkRect> bounds; 198 Optional<SkRect> bounds;
199 Optional<SkPaint> paint; 199 Optional<SkPaint> paint;
200 SkCanvas::SaveFlags flags); 200 SkCanvas::SaveLayerFlags saveLayerFlags);
201 201
202 RECORD(SetMatrix, 0, 202 RECORD(SetMatrix, 0,
203 TypedMatrix matrix); 203 TypedMatrix matrix);
204 RECORD(Concat, 0, 204 RECORD(Concat, 0,
205 TypedMatrix matrix); 205 TypedMatrix matrix);
206 206
207 struct RegionOpAndAA { 207 struct RegionOpAndAA {
208 RegionOpAndAA() {} 208 RegionOpAndAA() {}
209 RegionOpAndAA(SkRegion::Op op, bool aa) : op(op), aa(aa) {} 209 RegionOpAndAA(SkRegion::Op op, bool aa) : op(op), aa(aa) {}
210 SkRegion::Op op : 31; // This really only needs to be 3, but there's no win today to do so. 210 SkRegion::Op op : 31; // This really only needs to be 3, but there's no win today to do so.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 PODArray<SkColor> colors; 355 PODArray<SkColor> colors;
356 RefBox<SkXfermode> xmode; 356 RefBox<SkXfermode> xmode;
357 PODArray<uint16_t> indices; 357 PODArray<uint16_t> indices;
358 int indexCount); 358 int indexCount);
359 359
360 #undef RECORD 360 #undef RECORD
361 361
362 } // namespace SkRecords 362 } // namespace SkRecords
363 363
364 #endif//SkRecords_DEFINED 364 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698