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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 401053002: Don't set accelerated compositing to true in WebView. It's already defaulted to true. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 1038
1039 // Enable WebGL errors to the JS console if requested. 1039 // Enable WebGL errors to the JS console if requested.
1040 settings->setWebGLErrorsToConsoleEnabled( 1040 settings->setWebGLErrorsToConsoleEnabled(
1041 prefs.webgl_errors_to_console_enabled); 1041 prefs.webgl_errors_to_console_enabled);
1042 1042
1043 // Uses the mock theme engine for scrollbars. 1043 // Uses the mock theme engine for scrollbars.
1044 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); 1044 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled);
1045 1045
1046 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled); 1046 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled);
1047 1047
1048 // Enable gpu-accelerated compositing always.
1049 settings->setAcceleratedCompositingEnabled(true);
jamesr 2014/07/22 01:05:04 for the record, https://code.google.com/p/chromium
1050
1051 // Enable gpu-accelerated 2d canvas if requested on the command line. 1048 // Enable gpu-accelerated 2d canvas if requested on the command line.
1052 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled); 1049 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled);
1053 1050
1054 settings->setMinimumAccelerated2dCanvasSize( 1051 settings->setMinimumAccelerated2dCanvasSize(
1055 prefs.minimum_accelerated_2d_canvas_size); 1052 prefs.minimum_accelerated_2d_canvas_size);
1056 1053
1057 // Disable antialiasing for 2d canvas if requested on the command line. 1054 // Disable antialiasing for 2d canvas if requested on the command line.
1058 settings->setAntialiased2dCanvasEnabled( 1055 settings->setAntialiased2dCanvasEnabled(
1059 !prefs.antialiased_2d_canvas_disabled); 1056 !prefs.antialiased_2d_canvas_disabled);
1060 1057
(...skipping 3226 matching lines...) Expand 10 before | Expand all | Expand 10 after
4287 std::vector<gfx::Size> sizes; 4284 std::vector<gfx::Size> sizes;
4288 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4285 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4289 if (!url.isEmpty()) 4286 if (!url.isEmpty())
4290 urls.push_back( 4287 urls.push_back(
4291 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4288 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4292 } 4289 }
4293 SendUpdateFaviconURL(urls); 4290 SendUpdateFaviconURL(urls);
4294 } 4291 }
4295 4292
4296 } // namespace content 4293 } // namespace content
OLDNEW
« 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