diff options
author | 2014-12-02 10:08:11 -0800 | |
---|---|---|
committer | 2014-12-02 10:08:11 -0800 | |
commit | 3729469d6a12266037b697c2192768545e097ab0 (patch) | |
tree | 3260a913c22c9cbf3a24e78ebfd45f1e73815e02 /src/pipe/SkGPipeWrite.cpp | |
parent | cc969c4dd936c97670788395c9cbee3f346e87d1 (diff) |
Change clear() to respect the clip
patch from issue 769703002 at patchset 1 (http://crrev.com/769703002#ps1)
BUG=skia:
Review URL: https://codereview.chromium.org/772533004
Diffstat (limited to 'src/pipe/SkGPipeWrite.cpp')
-rw-r--r-- | src/pipe/SkGPipeWrite.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp index 41b0234480..a5af6c7111 100644 --- a/src/pipe/SkGPipeWrite.cpp +++ b/src/pipe/SkGPipeWrite.cpp @@ -233,7 +233,6 @@ public: // overrides from SkCanvas virtual bool isDrawingToLayer() const SK_OVERRIDE; - virtual void clear(SkColor) SK_OVERRIDE; virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) SK_OVERRIDE; @@ -690,20 +689,6 @@ void SkGPipeCanvas::onClipRegion(const SkRegion& region, SkRegion::Op rgnOp) { /////////////////////////////////////////////////////////////////////////////// -void SkGPipeCanvas::clear(SkColor color) { - NOTIFY_SETUP(this); - unsigned flags = 0; - if (color) { - flags |= kClear_HasColor_DrawOpFlag; - } - if (this->needOpBytes(sizeof(SkColor))) { - this->writeOp(kDrawClear_DrawOp, flags, 0); - if (color) { - fWriter.write32(color); - } - } -} - void SkGPipeCanvas::drawPaint(const SkPaint& paint) { NOTIFY_SETUP(this); this->writePaint(paint); |