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

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

Issue 1566193002: Always antialias clips in ClipDisplayItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 3bdcb57502511206c71b6601fda5ea91a0fe2d76..9536579aab42a58fe5048e9d8cb6853a9a0dae52 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -1068,17 +1068,17 @@ void GraphicsContext::strokeEllipse(const FloatRect& ellipse)
drawOval(ellipse, immutableState()->strokePaint());
}
-void GraphicsContext::clipRoundedRect(const FloatRoundedRect& rrect, SkRegion::Op regionOp)
+void GraphicsContext::clipRoundedRect(const FloatRoundedRect& rrect, SkRegion::Op regionOp, AntiAliasingMode shouldAntialias)
{
if (contextDisabled())
return;
if (!rrect.isRounded()) {
- clipRect(rrect.rect(), NotAntiAliased, regionOp);
+ clipRect(rrect.rect(), shouldAntialias, regionOp);
return;
}
- clipRRect(rrect, AntiAliased, regionOp);
+ clipRRect(rrect, shouldAntialias, regionOp);
}
void GraphicsContext::clipOut(const Path& pathToClip)

Powered by Google App Engine
This is Rietveld 408576698