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

Unified Diff: ui/gl/gl_surface.h

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « ui/gl/gl_image_surface_texture.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(); }
« no previous file with comments | « ui/gl/gl_image_surface_texture.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698