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

Unified Diff: src/core/SkBBoxHierarchyRecord.cpp

Issue 183453002: add new onClip* methods to SkCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove debug Created 6 years, 10 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/SkBBoxHierarchyRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBBoxHierarchyRecord.cpp
===================================================================
--- src/core/SkBBoxHierarchyRecord.cpp (revision 13622)
+++ src/core/SkBBoxHierarchyRecord.cpp (working copy)
@@ -77,31 +77,31 @@
fStateTree->appendTransform(getTotalMatrix());
}
-bool SkBBoxHierarchyRecord::clipRect(const SkRect& rect,
- SkRegion::Op op,
- bool doAntiAlias) {
+void SkBBoxHierarchyRecord::onClipRect(const SkRect& rect,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle) {
fStateTree->appendClip(this->writeStream().bytesWritten());
- return INHERITED::clipRect(rect, op, doAntiAlias);
+ this->INHERITED::onClipRect(rect, op, edgeStyle);
}
-bool SkBBoxHierarchyRecord::clipRegion(const SkRegion& region,
- SkRegion::Op op) {
+void SkBBoxHierarchyRecord::onClipRegion(const SkRegion& region,
+ SkRegion::Op op) {
fStateTree->appendClip(this->writeStream().bytesWritten());
- return INHERITED::clipRegion(region, op);
+ this->INHERITED::onClipRegion(region, op);
}
-bool SkBBoxHierarchyRecord::clipPath(const SkPath& path,
- SkRegion::Op op,
- bool doAntiAlias) {
+void SkBBoxHierarchyRecord::onClipPath(const SkPath& path,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle) {
fStateTree->appendClip(this->writeStream().bytesWritten());
- return INHERITED::clipPath(path, op, doAntiAlias);
+ this->INHERITED::onClipPath(path, op, edgeStyle);
}
-bool SkBBoxHierarchyRecord::clipRRect(const SkRRect& rrect,
- SkRegion::Op op,
- bool doAntiAlias) {
+void SkBBoxHierarchyRecord::onClipRRect(const SkRRect& rrect,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle) {
fStateTree->appendClip(this->writeStream().bytesWritten());
- return INHERITED::clipRRect(rrect, op, doAntiAlias);
+ this->INHERITED::onClipRRect(rrect, op, edgeStyle);
}
bool SkBBoxHierarchyRecord::shouldRewind(void* data) {
« no previous file with comments | « src/core/SkBBoxHierarchyRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698