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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 233093006: Stop disabling force_compositing_mode for background RenderViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: background: codemoved Created 6 years, 8 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 | chrome/browser/extensions/extension_webkit_preferences.cc » ('j') | 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 // webview tags as well as hosts that happen to match the id of an 2347 // webview tags as well as hosts that happen to match the id of an
2348 // installed extension would get the wrong preferences. 2348 // installed extension would get the wrong preferences.
2349 if (site_url.SchemeIs(extensions::kExtensionScheme)) { 2349 if (site_url.SchemeIs(extensions::kExtensionScheme)) {
2350 extension_webkit_preferences::SetPreferences( 2350 extension_webkit_preferences::SetPreferences(
2351 extension, view_type, web_prefs); 2351 extension, view_type, web_prefs);
2352 } 2352 }
2353 } 2353 }
2354 2354
2355 if (view_type == extensions::VIEW_TYPE_NOTIFICATION) { 2355 if (view_type == extensions::VIEW_TYPE_NOTIFICATION) {
2356 web_prefs->allow_scripts_to_close_windows = true; 2356 web_prefs->allow_scripts_to_close_windows = true;
2357 } else if (view_type == extensions::VIEW_TYPE_BACKGROUND_CONTENTS) {
2358 // Disable all kinds of acceleration for background pages.
2359 // See http://crbug.com/96005 and http://crbug.com/96006
2360 web_prefs->force_compositing_mode = false;
2361 web_prefs->accelerated_compositing_enabled = false;
2362 } 2357 }
2363 2358
2364 #if defined(OS_CHROMEOS) 2359 #if defined(OS_CHROMEOS)
2365 // Override the default of suppressing HW compositing for WebUI pages for the 2360 // Override the default of suppressing HW compositing for WebUI pages for the
2366 // file manager, which is implemented using WebUI but wants HW acceleration 2361 // file manager, which is implemented using WebUI but wants HW acceleration
2367 // for video decode & render. 2362 // for video decode & render.
2368 if (url.SchemeIs(extensions::kExtensionScheme) && 2363 if (url.SchemeIs(extensions::kExtensionScheme) &&
2369 url.host() == file_manager::kFileManagerAppId) { 2364 url.host() == file_manager::kFileManagerAppId) {
2370 web_prefs->accelerated_compositing_enabled = true; 2365 web_prefs->accelerated_compositing_enabled = true;
2371 web_prefs->accelerated_2d_canvas_enabled = true; 2366 web_prefs->accelerated_2d_canvas_enabled = true;
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 switches::kDisableWebRtcEncryption, 2721 switches::kDisableWebRtcEncryption,
2727 }; 2722 };
2728 to_command_line->CopySwitchesFrom(from_command_line, 2723 to_command_line->CopySwitchesFrom(from_command_line,
2729 kWebRtcDevSwitchNames, 2724 kWebRtcDevSwitchNames,
2730 arraysize(kWebRtcDevSwitchNames)); 2725 arraysize(kWebRtcDevSwitchNames));
2731 } 2726 }
2732 } 2727 }
2733 #endif // defined(ENABLE_WEBRTC) 2728 #endif // defined(ENABLE_WEBRTC)
2734 2729
2735 } // namespace chrome 2730 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webkit_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698