aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRasterClip.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 20:55:39 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 20:55:39 +0000
commitb446fc7f05d2e3f22d574187b433e02b0c781e1f (patch)
tree9c30bf0ad928d62b8f33ed641df08668836f0a00 /src/core/SkRasterClip.cpp
parente81d1bce7e26f046b8bcdef7fcefe84eaa806a56 (diff)
Remove SkRasterClip::setPath(const SkPath&, const SkRasterClip&, bool).
The method is only used in SkCanvas::clipPathHelper() and only called when isRect() is true (which effectively disables the !isBW branch). Thus, we can promote the isBW branch to the caller and drop the rest of the method. R=reed@google.com Author: fmalita@chromium.org Review URL: https://chromiumcodereview.appspot.com/18552004 git-svn-id: http://skia.googlecode.com/svn/trunk@9974 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkRasterClip.cpp')
-rw-r--r--src/core/SkRasterClip.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp
index 919fde9ffc..664211f64f 100644
--- a/src/core/SkRasterClip.cpp
+++ b/src/core/SkRasterClip.cpp
@@ -92,20 +92,6 @@ bool SkRasterClip::setPath(const SkPath& path, const SkIRect& clip, bool doAA) {
return this->setPath(path, tmp, doAA);
}
-bool SkRasterClip::setPath(const SkPath& path, const SkRasterClip& clip,
- bool doAA) {
- if (clip.isBW()) {
- return this->setPath(path, clip.bwRgn(), doAA);
- } else {
- SkRegion tmp;
- tmp.setRect(clip.getBounds());
- if (!this->setPath(path, clip, doAA)) {
- return false;
- }
- return this->op(clip, SkRegion::kIntersect_Op);
- }
-}
-
bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) {
AUTO_RASTERCLIP_VALIDATE(*this);