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

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

Issue 3413027: Force accelerated 2d canvas off for chrome ui (Closed)
Patch Set: Created 10 years, 3 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
« 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 // For GdkScreen 8 // For GdkScreen
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 #endif // defined(OS_CHROMEOS) 10 #endif // defined(OS_CHROMEOS)
(...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 } 2868 }
2869 return url; 2869 return url;
2870 } 2870 }
2871 2871
2872 WebPreferences TabContents::GetWebkitPrefs() { 2872 WebPreferences TabContents::GetWebkitPrefs() {
2873 Profile* profile = render_view_host()->process()->profile(); 2873 Profile* profile = render_view_host()->process()->profile();
2874 bool is_dom_ui = false; 2874 bool is_dom_ui = false;
2875 WebPreferences web_prefs = 2875 WebPreferences web_prefs =
2876 RenderViewHostDelegateHelper::GetWebkitPrefs(profile, is_dom_ui); 2876 RenderViewHostDelegateHelper::GetWebkitPrefs(profile, is_dom_ui);
2877 2877
2878 // Force accelerated compositing off for chrome: and chrome-extension: 2878 // Force accelerated compositing and 2d canvas off for chrome: and
2879 // pages. 2879 // chrome-extension: pages.
2880 if (GetURL().SchemeIs(chrome::kChromeUIScheme) || 2880 if (GetURL().SchemeIs(chrome::kChromeUIScheme) ||
2881 GetURL().SchemeIs(chrome::kExtensionScheme)) { 2881 GetURL().SchemeIs(chrome::kExtensionScheme)) {
2882 web_prefs.accelerated_compositing_enabled = false; 2882 web_prefs.accelerated_compositing_enabled = false;
2883 web_prefs.accelerated_2d_canvas_enabled = false;
2883 } 2884 }
2884 2885
2885 #if defined(OS_MACOSX) 2886 #if defined(OS_MACOSX)
2886 // Disable accelerated compositing if IOSurface's are not supported, 2887 // Disable accelerated compositing if IOSurface's are not supported,
2887 // as is the case in 10.5. 2888 // as is the case in 10.5.
2888 if (!IOSurfaceSupport::Initialize()) 2889 if (!IOSurfaceSupport::Initialize())
2889 web_prefs.accelerated_compositing_enabled = false; 2890 web_prefs.accelerated_compositing_enabled = false;
2890 #endif 2891 #endif
2891 2892
2892 return web_prefs; 2893 return web_prefs;
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3296 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3296 } 3297 }
3297 3298
3298 Profile* TabContents::GetProfileForPasswordManager() { 3299 Profile* TabContents::GetProfileForPasswordManager() {
3299 return profile(); 3300 return profile();
3300 } 3301 }
3301 3302
3302 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3303 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3303 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3304 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3304 } 3305 }
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