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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 2473973002: NOT for review (for discussion): Query IOSurfaceIsInUse in the browser process
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/service/image_transport_surface_overlay_mac.mm ('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..1ffed0da055dfee7ff1a8daee5200df945b1c21a 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -89,6 +89,10 @@ class GFX_EXPORT GpuMemoryBuffer {
// for scanout. Note that this will not impact texturing from the buffer.
virtual void SetColorSpaceForScanout(const gfx::ColorSpace& color_space);
+ // Returns true if the GpuMemoryBuffer is currently being read by the
+ // WindowServer and should not be written to.
+ virtual bool IsInUseByMacOSWindowServer() const;
+
// Returns a unique identifier associated with buffer.
virtual GpuMemoryBufferId GetId() const = 0;
« no previous file with comments | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698