Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: src/core/SkRasterClip.cpp

Issue 18552004: Remove SkRasterClip::setPath(const SkPath&, const SkRasterClip&, bool). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Added some comments. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRasterClip.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRasterClip.cpp
diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp
index 919fde9ffced33ff3ea5f05c0484b4fb5f3e84f1..664211f64f3e2a504bd85ff569c9afeb2045565e 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);
« no previous file with comments | « src/core/SkRasterClip.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698