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

Side by Side Diff: src/utils/SkNWayCanvas.cpp

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 | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SkNWayCanvas.h" 8 #include "SkNWayCanvas.h"
9 9
10 SkNWayCanvas::SkNWayCanvas(int width, int height) 10 SkNWayCanvas::SkNWayCanvas(int width, int height)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void SkNWayCanvas::willSave() { 60 void SkNWayCanvas::willSave() {
61 Iter iter(fList); 61 Iter iter(fList);
62 while (iter.next()) { 62 while (iter.next()) {
63 iter->save(); 63 iter->save();
64 } 64 }
65 65
66 this->INHERITED::willSave(); 66 this->INHERITED::willSave();
67 } 67 }
68 68
69 SkCanvas::SaveLayerStrategy SkNWayCanvas::willSaveLayer(const SkRect* bounds, co nst SkPaint* paint, 69 SkCanvas::SaveLayerStrategy SkNWayCanvas::getSaveLayerStrategy(const SaveLayerRe c& rec) {
70 SaveFlags flags) {
71 Iter iter(fList); 70 Iter iter(fList);
72 while (iter.next()) { 71 while (iter.next()) {
73 iter->saveLayer(bounds, paint, flags); 72 iter->saveLayer(rec);
74 } 73 }
75 74
76 this->INHERITED::willSaveLayer(bounds, paint, flags); 75 this->INHERITED::getSaveLayerStrategy(rec);
77 // No need for a layer. 76 // No need for a layer.
78 return kNoLayer_SaveLayerStrategy; 77 return kNoLayer_SaveLayerStrategy;
79 } 78 }
80 79
81 void SkNWayCanvas::willRestore() { 80 void SkNWayCanvas::willRestore() {
82 Iter iter(fList); 81 Iter iter(fList);
83 while (iter.next()) { 82 while (iter.next()) {
84 iter->restore(); 83 iter->restore();
85 } 84 }
86 this->INHERITED::willRestore(); 85 this->INHERITED::willRestore();
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 } 292 }
294 } 293 }
295 294
296 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 295 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
297 Iter iter(fList); 296 Iter iter(fList);
298 while (iter.next()) { 297 while (iter.next()) {
299 iter->setDrawFilter(filter); 298 iter->setDrawFilter(filter);
300 } 299 }
301 return this->INHERITED::setDrawFilter(filter); 300 return this->INHERITED::setDrawFilter(filter);
302 } 301 }
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698