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

Unified Diff: src/utils/SkPictureUtils.cpp

Issue 15894005: Moving updateClipConservativelyUsingBounds into SkCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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
« src/core/SkCanvas.cpp ('K') | « src/core/SkPictureRecord.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkPictureUtils.cpp
===================================================================
--- src/utils/SkPictureUtils.cpp (revision 9298)
+++ src/utils/SkPictureUtils.cpp (working copy)
@@ -180,11 +180,11 @@
// false positives and negatives.
virtual bool clipPath(const SkPath& path, SkRegion::Op op,
bool doAA) SK_OVERRIDE {
- return this->INHERITED::clipRect(path.getBounds(), op, false);
+ return this->updateClipConservativelyUsingBounds(path.getBounds(), op, path.isInverseFillType());
}
virtual bool clipRRect(const SkRRect& rrect, SkRegion::Op op,
bool doAA) SK_OVERRIDE {
- return this->INHERITED::clipRect(rrect.getBounds(), op, false);
+ return this->updateClipConservativelyUsingBounds(rrect.getBounds(), op, false);
}
private:
« src/core/SkCanvas.cpp ('K') | « src/core/SkPictureRecord.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698