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

Unified Diff: Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp

Issue 7398032: Merge 90599 - Work around Skia PDF's lack of inverted path support. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Fixing ChangeLog entry. Created 9 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 | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp
===================================================================
--- Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (revision 91206)
+++ Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (working copy)
@@ -297,6 +297,14 @@
void PlatformContextSkia::clipPathAntiAliased(const SkPath& clipPath)
{
+ if (m_canvas->getTopDevice()->getDeviceCapabilities() & SkDevice::kVector_Capability) {
+ // When the output is a vector device, like PDF, we don't need antialiased clips.
+ // It's up to the PDF rendering engine to do that. We can simply disable the
+ // antialiased clip code if the output is a vector device.
+ canvas()->clipPath(clipPath);
+ return;
+ }
+
// If we are currently tracking any anti-alias clip paths, then we already
// have a layer in place and don't need to add another.
bool haveLayerOutstanding = m_state->m_antiAliasClipPaths.size();
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698