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

Unified Diff: content/renderer/render_view_impl.cc

Issue 650143002: Add flag to enable antialiased clipping in HTML5 canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 837fadf3659e4c58e2bd9f36cf30e70afd15d366..f6aba4d32c81b0b647e8490f02a53a508960f51d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1006,6 +1006,11 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
settings->setAntialiased2dCanvasEnabled(
!prefs.antialiased_2d_canvas_disabled);
+ // Enabled antialiasing of clips for 2d canvas if requested on the command
+ // line.
+ settings->setAntialiasedClips2dCanvasEnabled(
+ prefs.antialiased_clips_2d_canvas_enabled);
+
// Set MSAA sample count for 2d canvas if requested on the command line (or
// default value if not).
settings->setAccelerated2dCanvasMSAASampleCount(
« content/public/common/content_switches.cc ('K') | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698