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 b79ae624b646dc8dcab0135894b69edea7d5dfb7..246ae23063a5a0d81ecb183b73bc2bcd47251722 100644 |
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
@@ -832,17 +832,12 @@ webkit::ppapi::PluginDelegate::PlatformContext3D* |
const webkit_glue::WebPreferences& prefs = render_view_->webkit_preferences(); |
if (!prefs.accelerated_compositing_for_plugins_enabled) |
return NULL; |
- return new PlatformContext3DImpl(this); |
+ return new PlatformContext3DImpl; |
#else |
return NULL; |
#endif |
} |
-void PepperPluginDelegateImpl::ReparentContext( |
- webkit::ppapi::PluginDelegate::PlatformContext3D* context) { |
- static_cast<PlatformContext3DImpl*>(context)->SetParentContext(this); |
-} |
- |
webkit::ppapi::PluginDelegate::PlatformVideoCapture* |
PepperPluginDelegateImpl::CreateVideoCapture( |
const std::string& device_id, |
@@ -1573,21 +1568,6 @@ int PepperPluginDelegateImpl::GetSessionID(PP_DeviceType_Dev type, |
#endif |
} |
-WebGraphicsContext3DCommandBufferImpl* |
-PepperPluginDelegateImpl::GetParentContextForPlatformContext3D() { |
- if (!offscreen_context3d_ || offscreen_context3d_->DestroyedOnMainThread()) { |
- offscreen_context3d_ = |
- RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
- |
- if (!offscreen_context3d_->InitializeOnMainThread() || |
- !offscreen_context3d_->BindToCurrentThread()) { |
- offscreen_context3d_ = NULL; |
- return NULL; |
- } |
- } |
- return offscreen_context3d_->Context3d(); |
-} |
- |
MouseLockDispatcher::LockTarget* |
PepperPluginDelegateImpl::GetOrCreateLockTargetAdapter( |
webkit::ppapi::PluginInstance* instance) { |