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

Unified Diff: src/pdf/SkPDFDevice.cpp

Issue 166313003: Make PDF clip code handle rrects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDevice.cpp
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index ce036d111279dfef64969c788cc636b47f62e053..a7ef08d21d56c22c8f20490896b1f6b9ac35b3de 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -503,14 +503,13 @@ void GraphicStackState::updateClip(const SkClipStack& clipStack,
emit_clip(NULL, &translatedClip, fContentStream);
break;
}
- case SkClipStack::Element::kPath_Type: {
+ default: {
SkPath translatedPath;
- clipEntry->getPath().transform(transform, &translatedPath);
+ clipEntry->asPath(&translatedPath);
+ translatedPath.transform(transform, &translatedPath);
emit_clip(&translatedPath, NULL, fContentStream);
break;
}
- default:
- SkASSERT(false);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698