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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 2531963002: gfx: Fix sending native ozone pixmaps from InProcessCommandBuffer. (Closed)
Patch Set: . Created 4 years, 1 month 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/in_process_command_buffer.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 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_
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698