| Index: ui/gfx/gpu_memory_buffer.h
|
| diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
|
| index 307fa18a728facfeadc4421f10f418486f25b3f3..35c8970c6dc31ef18b08031d2d2c9d1ebe2228be 100644
|
| --- a/ui/gfx/gpu_memory_buffer.h
|
| +++ b/ui/gfx/gpu_memory_buffer.h
|
| @@ -99,6 +99,12 @@ class GFX_EXPORT GpuMemoryBuffer {
|
| virtual ClientBuffer AsClientBuffer() = 0;
|
| };
|
|
|
| +// Returns an instance of |handle| which can be sent over IPC. This duplicates
|
| +// the file-handles as appropriate, so that the IPC code take ownership of them,
|
| +// without invalidating |handle| itself.
|
| +GFX_EXPORT GpuMemoryBufferHandle
|
| +CloneHandleForIPC(const GpuMemoryBufferHandle& handle);
|
| +
|
| } // namespace gfx
|
|
|
| #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
|
|
|