Index: ui/gl/gl_surface.h |
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
index d70379a76c4acfc32a555827f1b5f07beead9440..2b24c76dbed43c208253206885a74719dff11483 100644 |
--- a/ui/gl/gl_surface.h |
+++ b/ui/gl/gl_surface.h |
@@ -220,6 +220,11 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
// offset. |
virtual gfx::Vector2d GetDrawOffset() const; |
+ // This waits until rendering work is complete enough that an OS snapshot |
+ // will capture the last swapped contents. A GL context must be current when |
+ // calling this. |
+ virtual void WaitForSnapshotRendering(); |
+ |
static GLSurface* GetCurrent(); |
protected: |
@@ -292,6 +297,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface { |
bool SupportsDCLayers() const override; |
bool SetDrawRectangle(const gfx::Rect& rect) override; |
gfx::Vector2d GetDrawOffset() const override; |
+ void WaitForSnapshotRendering() override; |
GLSurface* surface() const { return surface_.get(); } |