diff options
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 0d235c9..10c66cd 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -217,24 +217,6 @@ FilePath WebPluginDelegatePepper::GetPluginPath() { return instance()->plugin_lib()->plugin_info().path; } -void WebPluginDelegatePepper::RenderViewInitiatedPaint() { - // Broadcast event to all 2D contexts. - Graphics2DMap::iterator iter2d(&graphic2d_contexts_); - while (!iter2d.IsAtEnd()) { - iter2d.GetCurrentValue()->RenderViewInitiatedPaint(); - iter2d.Advance(); - } -} - -void WebPluginDelegatePepper::RenderViewFlushedPaint() { - // Broadcast event to all 2D contexts. - Graphics2DMap::iterator iter2d(&graphic2d_contexts_); - while (!iter2d.IsAtEnd()) { - iter2d.GetCurrentValue()->RenderViewFlushedPaint(); - iter2d.Advance(); - } -} - WebPluginResourceClient* WebPluginDelegatePepper::CreateResourceClient( unsigned long resource_id, const GURL& url, int notify_id) { return instance()->CreateStream(resource_id, url, std::string(), notify_id); @@ -269,7 +251,7 @@ NPError WebPluginDelegatePepper::Device2DInitializeContext( // it will have a window handle. plugin_->SetWindow(NULL); - scoped_ptr<Graphics2DDeviceContext> g2d(new Graphics2DDeviceContext(this)); + scoped_ptr<Graphics2DDeviceContext> g2d(new Graphics2DDeviceContext()); NPError status = g2d->Initialize(window_rect_, config, context); if (NPERR_NO_ERROR == status) { context->reserved = reinterpret_cast<void *>( @@ -655,9 +637,6 @@ WebPluginDelegatePepper::WebPluginDelegatePepper( WebPluginDelegatePepper::~WebPluginDelegatePepper() { DestroyInstance(); - - if (render_view_) - render_view_->OnPepperPluginDestroy(this); } void WebPluginDelegatePepper::ForwardSetWindow() { |