summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/video_layer_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/renderer_host/video_layer_proxy.cc')
-rw-r--r--chrome/browser/renderer_host/video_layer_proxy.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/renderer_host/video_layer_proxy.cc b/chrome/browser/renderer_host/video_layer_proxy.cc
index fb4cfe9..3df1d25 100644
--- a/chrome/browser/renderer_host/video_layer_proxy.cc
+++ b/chrome/browser/renderer_host/video_layer_proxy.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/renderer_host/video_layer_proxy.h"
#include "chrome/browser/gpu_process_host_ui_shim.h"
+#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/common/gpu_messages.h"
#include "gfx/rect.h"
@@ -23,12 +24,17 @@ VideoLayerProxy::~VideoLayerProxy() {
}
void VideoLayerProxy::CopyTransportDIB(RenderProcessHost* process,
- TransportDIB::Id dib_id,
- TransportDIB::Handle dib_handle,
+ TransportDIB::Id bitmap,
const gfx::Rect& bitmap_rect) {
- TransportDIB::ScopedHandle scoped_dib_handle(dib_handle);
+ base::ProcessId process_id;
+#if defined(OS_WIN)
+ process_id = ::GetProcessId(process->GetHandle());
+#elif defined(OS_POSIX)
+ process_id = process->GetHandle();
+#endif
+
if (process_shim_->Send(new GpuMsg_PaintToVideoLayer(
- routing_id_, scoped_dib_handle.release(), bitmap_rect))) {
+ routing_id_, process_id, bitmap, bitmap_rect))) {
} else {
// TODO(scherkus): what to do ?!?!
}