OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |