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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 years, 5 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 | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/SkProxyCanvas.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 /* 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return false; 50 return false;
51 } 51 }
52 SkCanvas* operator->() { return fCanvas; } 52 SkCanvas* operator->() { return fCanvas; }
53 53
54 private: 54 private:
55 const SkTDArray<SkCanvas*>& fList; 55 const SkTDArray<SkCanvas*>& fList;
56 int fIndex; 56 int fIndex;
57 SkCanvas* fCanvas; 57 SkCanvas* fCanvas;
58 }; 58 };
59 59
60 void SkNWayCanvas::willSave(SaveFlags flags) { 60 void SkNWayCanvas::willSave() {
61 Iter iter(fList); 61 Iter iter(fList);
62 while (iter.next()) { 62 while (iter.next()) {
63 iter->save(flags); 63 iter->save();
64 } 64 }
65 65
66 this->INHERITED::willSave(flags); 66 this->INHERITED::willSave();
67 } 67 }
68 68
69 SkCanvas::SaveLayerStrategy SkNWayCanvas::willSaveLayer(const SkRect* bounds, co nst SkPaint* paint, 69 SkCanvas::SaveLayerStrategy SkNWayCanvas::willSaveLayer(const SkRect* bounds, co nst SkPaint* paint,
70 SaveFlags flags) { 70 SaveFlags flags) {
71 Iter iter(fList); 71 Iter iter(fList);
72 while (iter.next()) { 72 while (iter.next()) {
73 iter->saveLayer(bounds, paint, flags); 73 iter->saveLayer(bounds, paint, flags);
74 } 74 }
75 75
76 this->INHERITED::willSaveLayer(bounds, paint, flags); 76 this->INHERITED::willSaveLayer(bounds, paint, flags);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 iter->addComment(kywd, value); 312 iter->addComment(kywd, value);
313 } 313 }
314 } 314 }
315 315
316 void SkNWayCanvas::endCommentGroup() { 316 void SkNWayCanvas::endCommentGroup() {
317 Iter iter(fList); 317 Iter iter(fList);
318 while (iter.next()) { 318 while (iter.next()) {
319 iter->endCommentGroup(); 319 iter->endCommentGroup();
320 } 320 }
321 } 321 }
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/SkProxyCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698