Index: src/utils/SkNWayCanvas.cpp |
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp |
index a9543f9c02f4d4ad04c769d0a1e7fa6f1cab602c..6fbec962044091f647704c236ab20e3dc1411dc8 100644 |
--- a/src/utils/SkNWayCanvas.cpp |
+++ b/src/utils/SkNWayCanvas.cpp |
@@ -57,29 +57,33 @@ |
SkCanvas* fCanvas; |
}; |
-int SkNWayCanvas::save(SaveFlags flags) { |
+void SkNWayCanvas::onSave(SaveFlags flags) { |
Iter iter(fList); |
while (iter.next()) { |
iter->save(flags); |
} |
- return this->INHERITED::save(flags); |
-} |
- |
-int SkNWayCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint, |
- SaveFlags flags) { |
+ |
+ this->INHERITED::onSave(flags); |
+} |
+ |
+bool SkNWayCanvas::onSaveLayer(const SkRect* bounds, const SkPaint* paint, |
+ SaveFlags flags) { |
Iter iter(fList); |
while (iter.next()) { |
iter->saveLayer(bounds, paint, flags); |
} |
- return this->INHERITED::saveLayer(bounds, paint, flags); |
-} |
- |
-void SkNWayCanvas::restore() { |
+ |
+ this->INHERITED::onSaveLayer(bounds, paint, flags); |
+ // No need for a layer. |
+ return false; |
+} |
+ |
+void SkNWayCanvas::onRestore() { |
Iter iter(fList); |
while (iter.next()) { |
iter->restore(); |
} |
- this->INHERITED::restore(); |
+ this->INHERITED::onRestore(); |
} |
bool SkNWayCanvas::translate(SkScalar dx, SkScalar dy) { |