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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | ppapi/shared_impl/ppapi_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index a7760205d0bcebc52f292497a38a6ccadb491b67..219b2e38abb9f0f1bac174906060f002af10be3f 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -808,7 +808,8 @@ webkit::ppapi::PluginDelegate::PlatformContext3D*
// If accelerated compositing of plugins is disabled, fail to create a 3D
// context, because it won't be visible. This allows graceful fallback in the
// modules.
- if (!render_view_->webkit_preferences().accelerated_plugins_enabled)
+ const webkit_glue::WebPreferences& prefs = render_view_->webkit_preferences();
+ if (!prefs.accelerated_compositing_for_plugins_enabled)
return NULL;
return new PlatformContext3DImpl(this);
#else
« no previous file with comments | « content/common/view_messages.h ('k') | ppapi/shared_impl/ppapi_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698