X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Finclude%2Futils%2FSkNoSaveLayerCanvas.h;h=b6926973e09b42f7988333f0d2dad0047baf53ff;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=686f179901d6181c9fb5a47ece5cd4243d1f8311;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/include/utils/SkNoSaveLayerCanvas.h b/src/third_party/skia/include/utils/SkNoSaveLayerCanvas.h index 686f179..b692697 100644 --- a/src/third_party/skia/include/utils/SkNoSaveLayerCanvas.h +++ b/src/third_party/skia/include/utils/SkNoSaveLayerCanvas.h @@ -16,7 +16,9 @@ // It also simplifies the clipping calls to only use rectangles. class SK_API SkNoSaveLayerCanvas : public SkCanvas { public: - SkNoSaveLayerCanvas(SkBaseDevice* device) : INHERITED(device) {} + SkNoSaveLayerCanvas(SkBaseDevice* device) + : INHERITED(device, NULL, kConservativeRasterClip_InitFlag) + {} protected: virtual SaveLayerStrategy willSaveLayer(const SkRect* bounds, const SkPaint* paint, @@ -25,21 +27,6 @@ protected: return kNoLayer_SaveLayerStrategy; } - // disable aa for speed - virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { - this->INHERITED::onClipRect(rect, op, kHard_ClipEdgeStyle); - } - - // for speed, just respect the bounds, and disable AA. May give us a few - // false positives and negatives. - virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { - this->updateClipConservativelyUsingBounds(path.getBounds(), op, - path.isInverseFillType()); - } - virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { - this->updateClipConservativelyUsingBounds(rrect.getBounds(), op, false); - } - private: typedef SkCanvas INHERITED; };