summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/gl_image_io_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gl/gl_image_io_surface.h')
-rw-r--r--chromium/ui/gl/gl_image_io_surface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/ui/gl/gl_image_io_surface.h b/chromium/ui/gl/gl_image_io_surface.h
index c9e3d69b81b..e78cb1a066e 100644
--- a/chromium/ui/gl/gl_image_io_surface.h
+++ b/chromium/ui/gl/gl_image_io_surface.h
@@ -69,15 +69,13 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
uint64_t process_tracing_id,
const std::string& dump_name) override;
bool EmulatingRGB() const override;
+ bool IsInUseByWindowServer() const override;
+ void DisableInUseByWindowServer() override;
gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; }
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;
-
// For IOSurfaces that need manual conversion to a GL texture before being
// sampled from, specify the color space in which to do the required YUV to
// RGB transformation.
@@ -115,6 +113,8 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
// The default value of Rec. 601 is based on historical shader code.
gfx::ColorSpace color_space_for_yuv_to_rgb_ = gfx::ColorSpace::CreateREC601();
+ bool disable_in_use_by_window_server_ = false;
+
DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
};