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

Unified Diff: src/core/SkCanvas.cpp

Issue 168893002: fix calling undef inline func build error (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Hanlde rrect in SkCanvas::validateClip() 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 | « include/core/SkClipStack.h ('k') | src/core/SkClipStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 2cc504fb55bc64c4ee1fc24d08430882dee82e16..7025e53eb197611ef286c622597daa21d8d674aa 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1417,13 +1417,6 @@ void SkCanvas::validateClip() const {
const SkClipStack::Element* element;
while ((element = iter.next()) != NULL) {
switch (element->getType()) {
- case SkClipStack::Element::kPath_Type:
- clipPathHelper(this,
- &tmpClip,
- element->getPath(),
- element->getOp(),
- element->isAA());
- break;
case SkClipStack::Element::kRect_Type:
element->getRect().round(&ir);
tmpClip.op(ir, element->getOp());
@@ -1431,6 +1424,16 @@ void SkCanvas::validateClip() const {
case SkClipStack::Element::kEmpty_Type:
tmpClip.setEmpty();
break;
+ default: {
+ SkPath path;
+ element->asPath(&path);
+ clipPathHelper(this,
+ &tmpClip,
+ path,
+ element->getOp(),
+ element->isAA());
+ break;
+ }
}
}
« no previous file with comments | « include/core/SkClipStack.h ('k') | src/core/SkClipStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698