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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 12547016: Enable browser plugin compositing by default, but add a flag to disable it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index f7bee53452acc678511175979851aa1a5d09b18d..23dc5264a34ccb17e931526c984650596ce59675 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -632,8 +632,8 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
// Disable compositing in guests until we have compositing path implemented
// for guests.
- bool guest_compositing_enabled = command_line.HasSwitch(
- switches::kEnableBrowserPluginCompositing);
+ bool guest_compositing_enabled = !command_line.HasSwitch(
+ switches::kDisableBrowserPluginCompositing);
if (rvh->GetProcess()->IsGuest() && !guest_compositing_enabled) {
prefs.force_compositing_mode = false;
prefs.accelerated_compositing_enabled = false;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_guest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698