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

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

Issue 11361223: cc: Remove cc::settings, move them to LayerTreeSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-unittests Created 8 years, 1 month 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 | « cc/test/test_common.h ('k') | content/browser/renderer_host/render_process_host_impl.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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 if (content::IsForceCompositingModeEnabled()) 1647 if (content::IsForceCompositingModeEnabled())
1648 web_prefs->force_compositing_mode = true; 1648 web_prefs->force_compositing_mode = true;
1649 1649
1650 if (view_type == chrome::VIEW_TYPE_NOTIFICATION) { 1650 if (view_type == chrome::VIEW_TYPE_NOTIFICATION) {
1651 web_prefs->allow_scripts_to_close_windows = true; 1651 web_prefs->allow_scripts_to_close_windows = true;
1652 } else if (view_type == chrome::VIEW_TYPE_BACKGROUND_CONTENTS) { 1652 } else if (view_type == chrome::VIEW_TYPE_BACKGROUND_CONTENTS) {
1653 // Disable all kinds of acceleration for background pages. 1653 // Disable all kinds of acceleration for background pages.
1654 // See http://crbug.com/96005 and http://crbug.com/96006 1654 // See http://crbug.com/96005 and http://crbug.com/96006
1655 web_prefs->force_compositing_mode = false; 1655 web_prefs->force_compositing_mode = false;
1656 web_prefs->accelerated_compositing_enabled = false; 1656 web_prefs->accelerated_compositing_enabled = false;
1657 web_prefs->accelerated_2d_canvas_enabled = false;
1658 web_prefs->accelerated_video_enabled = false;
1659 web_prefs->accelerated_painting_enabled = false;
1660 web_prefs->accelerated_plugins_enabled = false;
1661 } 1657 }
1662 1658
1663 #if defined(FILE_MANAGER_EXTENSION) 1659 #if defined(FILE_MANAGER_EXTENSION)
1664 // Override the default of suppressing HW compositing for WebUI pages for the 1660 // Override the default of suppressing HW compositing for WebUI pages for the
1665 // file manager, which is implemented using WebUI but wants HW acceleration 1661 // file manager, which is implemented using WebUI but wants HW acceleration
1666 // for video decode & render. 1662 // for video decode & render.
1667 if (url.spec() == chrome::kChromeUIFileManagerURL) { 1663 if (url.spec() == chrome::kChromeUIFileManagerURL) {
1668 web_prefs->accelerated_compositing_enabled = true; 1664 web_prefs->accelerated_compositing_enabled = true;
1669 web_prefs->accelerated_2d_canvas_enabled = true; 1665 web_prefs->accelerated_2d_canvas_enabled = true;
1670 } 1666 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 io_thread_application_locale_ = locale; 1911 io_thread_application_locale_ = locale;
1916 } 1912 }
1917 1913
1918 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 1914 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
1919 const std::string& locale) { 1915 const std::string& locale) {
1920 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 1916 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1921 io_thread_application_locale_ = locale; 1917 io_thread_application_locale_ = locale;
1922 } 1918 }
1923 1919
1924 } // namespace chrome 1920 } // namespace chrome
OLDNEW
« no previous file with comments | « cc/test/test_common.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698