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 |