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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 7093002: Disable accelerated 2d canvas on the mac. The current implementation is based on SKIA and isn't ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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: chrome/browser/tab_contents/render_view_host_delegate_helper.cc
===================================================================
--- chrome/browser/tab_contents/render_view_host_delegate_helper.cc (revision 87263)
+++ chrome/browser/tab_contents/render_view_host_delegate_helper.cc (working copy)
@@ -318,9 +318,13 @@
!command_line.HasSwitch(switches::kDisableAcceleratedCompositing);
web_prefs.force_compositing_mode =
command_line.HasSwitch(switches::kForceCompositingMode);
+#if defined(OS_MACOSX)
+ web_prefs.accelerated_2d_canvas_enabled = false;
Avi (use Gerrit) 2011/05/31 12:07:15 Need a comment with a bug URL here.
+#else
web_prefs.accelerated_2d_canvas_enabled =
gpu_enabled() &&
!command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
+#endif
web_prefs.accelerated_drawing_enabled =
gpu_enabled() &&
command_line.HasSwitch(switches::kEnableAcceleratedDrawing);
« 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