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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2192493003: Enable GPU acceleration in 2D OffscreenCanvases on main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dev tools failure Created 4 years, 4 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 | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index d7b1590b020e0dcf5f840b1f897428fd32eec51b..4539f21b0f38c720aa8c4ebd3253b10aabac982f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -974,7 +974,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled);
// Enable gpu-accelerated 2d canvas if requested on the command line.
- settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled);
+ WebRuntimeFeatures::enableAccelerated2dCanvas(
+ prefs.accelerated_2d_canvas_enabled);
settings->setMinimumAccelerated2dCanvasSize(
prefs.minimum_accelerated_2d_canvas_size);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698