| Index: ui/gl/gl_surface.h
|
| diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
|
| index 3e654cb8cf548789e696844689a5271ccc67c08d..4dfc4e04621d3f72c189482c733abb3e9a6024d9 100644
|
| --- a/ui/gl/gl_surface.h
|
| +++ b/ui/gl/gl_surface.h
|
| @@ -215,6 +215,14 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
|
| // Called when the swap interval for the associated context changes.
|
| virtual void OnSetSwapInterval(int interval);
|
|
|
| + // Returns whether IsertFence() is supported.
|
| + virtual bool SupportsInsertFence();
|
| +
|
| + // Insert fence and run |callback| when fence has signaled. The callback
|
| + // should be run on the calling thread (i.e. same thread InsertFence is
|
| + // called)
|
| + virtual void InsertFence(const base::Closure& callback);
|
| +
|
| protected:
|
| virtual ~GLSurface();
|
|
|
| @@ -282,6 +290,8 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
|
| bool IsSurfaceless() const override;
|
| bool FlipsVertically() const override;
|
| bool BuffersFlipped() const override;
|
| + bool SupportsInsertFence() override;
|
| + void InsertFence(const base::Closure& callback) override;
|
|
|
| GLSurface* surface() const { return surface_.get(); }
|
|
|
|
|