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

Unified Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 652483003: Plumb in flag to enable antialiased clipping in HTML 5 Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More cleanup Created 6 years, 2 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
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index 8b118ee83df56bb2bddc68c8adc858cfb26771d3..dbfdd6ee9e25ede929598c4b24f3069170202737 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -1561,7 +1561,7 @@ void GraphicsContext::clipOutRoundedRect(const RoundedRect& rect)
clipRoundedRect(rect, SkRegion::kDifference_Op);
}
-void GraphicsContext::canvasClip(const Path& pathToClip, WindRule clipRule)
+void GraphicsContext::canvasClip(const Path& pathToClip, WindRule clipRule, bool antialias)
{
if (contextDisabled())
return;
@@ -1572,7 +1572,7 @@ void GraphicsContext::canvasClip(const Path& pathToClip, WindRule clipRule)
SkPath::FillType temporaryFillType = WebCoreWindRuleToSkFillType(clipRule);
path.setFillType(temporaryFillType);
- clipPath(path);
+ clipPath(path, antialias ? AntiAliased : NotAntiAliased);
Justin Novosad 2014/10/14 14:46:43 Since we already have this enumr this, we should u
robertphillips 2014/10/16 13:24:18 Done.
path.setFillType(previousFillType);
}

Powered by Google App Engine
This is Rietveld 408576698