Index: ui/gfx/gpu_memory_buffer.h |
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h |
index 6d23c84ddc76074fc8bd5f13af1460e6b3c70531..b38253996883646d0211b170c590ef9f9778150f 100644 |
--- a/ui/gfx/gpu_memory_buffer.h |
+++ b/ui/gfx/gpu_memory_buffer.h |
@@ -62,6 +62,10 @@ class GFX_EXPORT GpuMemoryBuffer { |
public: |
virtual ~GpuMemoryBuffer() {} |
+ // Returns the shared memory's handle when the back end is base::SharedMemory. |
+ // Otherwise, this returns an invalid handle. |
+ virtual base::SharedMemoryHandle shared_memory_handle() const; |
reveman
2017/05/30 21:37:01
I don't like to expose implementation specific fun
ssid
2017/05/31 03:35:45
We now have a shared memory tracker which records
reveman
2017/06/01 14:13:45
I prefer this latter approach as it's something th
|
+ |
// Maps each plane of the buffer into the client's address space so it can be |
// written to by the CPU. This call may block, for instance if the GPU needs |
// to finish accessing the buffer or if CPU caches need to be synchronized. |