diff options
Diffstat (limited to 'src/utils/SkNWayCanvas.cpp')
-rw-r--r-- | src/utils/SkNWayCanvas.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp index 6fbec96204..a9543f9c02 100644 --- a/src/utils/SkNWayCanvas.cpp +++ b/src/utils/SkNWayCanvas.cpp @@ -57,33 +57,29 @@ private: SkCanvas* fCanvas; }; -void SkNWayCanvas::onSave(SaveFlags flags) { +int SkNWayCanvas::save(SaveFlags flags) { Iter iter(fList); while (iter.next()) { iter->save(flags); } - - this->INHERITED::onSave(flags); + return this->INHERITED::save(flags); } -bool SkNWayCanvas::onSaveLayer(const SkRect* bounds, const SkPaint* paint, - SaveFlags flags) { +int SkNWayCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint, + SaveFlags flags) { Iter iter(fList); while (iter.next()) { iter->saveLayer(bounds, paint, flags); } - - this->INHERITED::onSaveLayer(bounds, paint, flags); - // No need for a layer. - return false; + return this->INHERITED::saveLayer(bounds, paint, flags); } -void SkNWayCanvas::onRestore() { +void SkNWayCanvas::restore() { Iter iter(fList); while (iter.next()) { iter->restore(); } - this->INHERITED::onRestore(); + this->INHERITED::restore(); } bool SkNWayCanvas::translate(SkScalar dx, SkScalar dy) { |