| Index: chrome/gpu/gpu_video_layer_glx.cc
|
| diff --git a/chrome/gpu/gpu_video_layer_glx.cc b/chrome/gpu/gpu_video_layer_glx.cc
|
| index d0578adc47f5af36320cc2392cb67b44e496f02f..dffa35ef84877cc7552ab3ddd0619ec1da8bb5cb 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(base::ProcessId source_process_id,
|
| - TransportDIB::Id id,
|
| +void GpuVideoLayerGLX::OnPaintToVideoLayer(TransportDIB::Handle dib_handle,
|
| 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(base::ProcessId source_process_id,
|
| height <= 0 || height > kMaxVideoLayerSize)
|
| return;
|
|
|
| - TransportDIB* dib = TransportDIB::Map(id);
|
| + TransportDIB* dib = TransportDIB::Map(scoped_dib_handle.release());
|
| if (!dib)
|
| return;
|
|
|
|
|