Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1120)

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 2912753002: Add gfx::GpuMemoryBuffer::shared_memory_handle() (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698