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

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

Issue 1567063002: Revert[2] of "add backdrop option to SaveLayerRec" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add test and fix for svg-savelayer optimization Created 4 years, 11 months 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') | samplecode/SampleApp.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
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkDrawable.h" 12 #include "SkDrawable.h"
13 #include "SkImageFilter.h"
13 #include "SkMatrix.h" 14 #include "SkMatrix.h"
14 #include "SkPath.h" 15 #include "SkPath.h"
15 #include "SkPicture.h" 16 #include "SkPicture.h"
16 #include "SkRect.h" 17 #include "SkRect.h"
17 #include "SkRRect.h" 18 #include "SkRRect.h"
18 #include "SkRSXform.h" 19 #include "SkRSXform.h"
19 #include "SkTextBlob.h" 20 #include "SkTextBlob.h"
20 21
21 namespace SkRecords { 22 namespace SkRecords {
22 23
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 191
191 RECORD(NoOp, 0); 192 RECORD(NoOp, 0);
192 RECORD(Restore, 0, 193 RECORD(Restore, 0,
193 SkIRect devBounds; 194 SkIRect devBounds;
194 TypedMatrix matrix); 195 TypedMatrix matrix);
195 RECORD(Save, 0); 196 RECORD(Save, 0);
196 197
197 RECORD(SaveLayer, 0, 198 RECORD(SaveLayer, 0,
198 Optional<SkRect> bounds; 199 Optional<SkRect> bounds;
199 Optional<SkPaint> paint; 200 Optional<SkPaint> paint;
201 RefBox<const SkImageFilter> backdrop;
200 SkCanvas::SaveLayerFlags saveLayerFlags); 202 SkCanvas::SaveLayerFlags saveLayerFlags);
201 203
202 RECORD(SetMatrix, 0, 204 RECORD(SetMatrix, 0,
203 TypedMatrix matrix); 205 TypedMatrix matrix);
204 RECORD(Concat, 0, 206 RECORD(Concat, 0,
205 TypedMatrix matrix); 207 TypedMatrix matrix);
206 208
207 struct RegionOpAndAA { 209 struct RegionOpAndAA {
208 RegionOpAndAA() {} 210 RegionOpAndAA() {}
209 RegionOpAndAA(SkRegion::Op op, bool aa) : op(op), aa(aa) {} 211 RegionOpAndAA(SkRegion::Op op, bool aa) : op(op), aa(aa) {}
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 PODArray<SkColor> colors; 357 PODArray<SkColor> colors;
356 RefBox<SkXfermode> xmode; 358 RefBox<SkXfermode> xmode;
357 PODArray<uint16_t> indices; 359 PODArray<uint16_t> indices;
358 int indexCount); 360 int indexCount);
359 361
360 #undef RECORD 362 #undef RECORD
361 363
362 } // namespace SkRecords 364 } // namespace SkRecords
363 365
364 #endif//SkRecords_DEFINED 366 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698