Index: src/utils/SkNoSaveLayerCanvas.h |
diff --git a/src/utils/SkNoSaveLayerCanvas.h b/src/utils/SkNoSaveLayerCanvas.h |
index 60fad87237b91818a7517abea5abd4076432aac2..037fcecab5fe47737623dd3b9dfa9725c9d25622 100644 |
--- a/src/utils/SkNoSaveLayerCanvas.h |
+++ b/src/utils/SkNoSaveLayerCanvas.h |
@@ -18,21 +18,13 @@ |
public: |
SkNoSaveLayerCanvas(SkBaseDevice* device) : INHERITED(device) {} |
- // turn saveLayer() into save() for speed, should not affect correctness. |
- virtual int saveLayer(const SkRect* bounds, |
- const SkPaint* paint, |
- SaveFlags flags) SK_OVERRIDE { |
- |
- // Like SkPictureRecord, we don't want to create layers, but we do need |
- // to respect the save and (possibly) its rect-clip. |
- int count = this->INHERITED::save(flags); |
- if (NULL != bounds) { |
- this->INHERITED::clipRectBounds(bounds, flags, NULL); |
- } |
- return count; |
+protected: |
+ virtual bool onSaveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags) |
+ SK_OVERRIDE { |
+ this->INHERITED::onSaveLayer(bounds, paint, flags); |
+ return false; |
} |
-protected: |
// disable aa for speed |
virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { |
this->INHERITED::onClipRect(rect, op, kHard_ClipEdgeStyle); |