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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7519017: respect --force-compositing-mode for chrome: pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add new flag instead Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index fe1abaf1a800cb3d311e5a973c78a6823936cf1c..3b7a9c87adec478b10beace602ae6a8bed5cb597 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1692,10 +1692,11 @@ WebPreferences TabContents::GetWebkitPrefs() {
render_view_host()->process()->browser_context(), false);
// Force accelerated compositing and 2d canvas off for chrome:, about: and
- // chrome-devtools: pages.
- if (GetURL().SchemeIs(chrome::kChromeDevToolsScheme) ||
+ // chrome-devtools: pages (unless it's specifically allowed).
+ if ((GetURL().SchemeIs(chrome::kChromeDevToolsScheme) ||
GetURL().SchemeIs(chrome::kChromeUIScheme) ||
- GetURL().SchemeIs(chrome::kAboutScheme)) {
+ GetURL().SchemeIs(chrome::kAboutScheme)) &&
+ !web_prefs.allow_webui_compositing) {
web_prefs.accelerated_compositing_enabled = false;
web_prefs.accelerated_2d_canvas_enabled = false;
}
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698