diff options
Diffstat (limited to 'chrome/gpu/gpu_video_layer_glx.cc')
-rw-r--r-- | chrome/gpu/gpu_video_layer_glx.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/gpu/gpu_video_layer_glx.cc b/chrome/gpu/gpu_video_layer_glx.cc index dffa35e..d0578ad 100644 --- a/chrome/gpu/gpu_video_layer_glx.cc +++ b/chrome/gpu/gpu_video_layer_glx.cc @@ -251,9 +251,9 @@ void GpuVideoLayerGLX::OnChannelError() { NOTIMPLEMENTED(); } -void GpuVideoLayerGLX::OnPaintToVideoLayer(TransportDIB::Handle dib_handle, +void GpuVideoLayerGLX::OnPaintToVideoLayer(base::ProcessId source_process_id, + TransportDIB::Id id, const gfx::Rect& bitmap_rect) { - TransportDIB::ScopedHandle scoped_dib_handle(dib_handle); // TODO(scherkus): |native_size_| is set in constructor, so perhaps this check // should be a DCHECK(). const int width = native_size_.width(); @@ -264,7 +264,7 @@ void GpuVideoLayerGLX::OnPaintToVideoLayer(TransportDIB::Handle dib_handle, height <= 0 || height > kMaxVideoLayerSize) return; - TransportDIB* dib = TransportDIB::Map(scoped_dib_handle.release()); + TransportDIB* dib = TransportDIB::Map(id); if (!dib) return; |