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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 234443002: Remove enable-software-compositing command-line flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 5cce7ea30469a6a10650e252bcd5b8d9cad0fb7e..d93364edc34dd5d6de7bf0a97ca3aa49754250f3 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1909,9 +1909,7 @@ void PepperPluginInstanceImpl::UpdateLayer() {
DCHECK_EQ(mailbox.IsZero(), sync_point == 0);
}
bool want_3d_layer = !mailbox.IsZero();
- bool want_2d_layer = bound_graphics_2d_platform_ &&
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableSoftwareCompositing);
+ bool want_2d_layer = !!bound_graphics_2d_platform_;
bool want_layer = want_3d_layer || want_2d_layer;
if ((want_layer == !!texture_layer_.get()) &&
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698