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

Unified Diff: ui/gl/gl_image_io_surface.h

Issue 2085173002: Don't check IOSurfaceIsInUse for IOSurfaces wrapped in a CVPixelBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: ui/gl/gl_image_io_surface.h
diff --git a/ui/gl/gl_image_io_surface.h b/ui/gl/gl_image_io_surface.h
index 5774e12fb645be2d61bb8cbd4625c3abc14237b3..48496b741656a53d2cece98de26e48a89b55bfe7 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -65,6 +65,10 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
base::ScopedCFTypeRef<IOSurfaceRef> io_surface();
base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer();
+ // Whether checking IOSurfaceIsInUse() will actually provide a meaningful
+ // signal about whether the Window Server is still using the IOSurface.
+ bool CanCheckIOSurfaceIsInUse() const;
+
static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
protected:

Powered by Google App Engine
This is Rietveld 408576698