Index: src/utils/SkNoSaveLayerCanvas.h |
diff --git a/src/utils/SkNoSaveLayerCanvas.h b/src/utils/SkNoSaveLayerCanvas.h |
index 60fad87237b91818a7517abea5abd4076432aac2..6b346845e27fda8bbce5a008e100e01c57d1ab0b 100644 |
--- a/src/utils/SkNoSaveLayerCanvas.h |
+++ b/src/utils/SkNoSaveLayerCanvas.h |
@@ -18,21 +18,13 @@ class SkNoSaveLayerCanvas : public SkCanvas { |
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 SaveLayerStrategy willSaveLayer(const SkRect* bounds, const SkPaint* paint, |
+ SaveFlags flags) SK_OVERRIDE { |
+ this->INHERITED::willSaveLayer(bounds, paint, flags); |
+ return kNoLayer_SaveLayerStrategy; |
} |
-protected: |
// disable aa for speed |
virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { |
this->INHERITED::onClipRect(rect, op, kHard_ClipEdgeStyle); |