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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 2 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
« app/surface/transport_dib_mac.cc ('K') | « chrome/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.cc
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index a2553f2fb800315d4eae697193eb87783b595aae..7b3938ee0bd612344a7d2fe6c81145d0c9122c0c 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -1506,9 +1506,10 @@ void WebPluginDelegateProxy::OnAcceleratedSurfaceSetTransportDIB(
int32 width,
int32 height,
TransportDIB::Handle transport_dib) {
+ TransportDIB::ScopedHandle scoped_dib_handle(transport_dib);
if (render_view_)
render_view_->AcceleratedSurfaceSetTransportDIB(window, width, height,
- transport_dib);
+ scoped_dib_handle.release());
}
void WebPluginDelegateProxy::OnAcceleratedSurfaceAllocTransportDIB(
« app/surface/transport_dib_mac.cc ('K') | « chrome/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698