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

Unified Diff: ui/gl/gl_surface.h

Issue 2888993002: Do glFinish before sending snapshot latency info to browser (Closed)
Patch Set: add current tests Created 3 years, 7 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 | « gpu/ipc/service/pass_through_image_transport_surface.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 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(); }
« no previous file with comments | « gpu/ipc/service/pass_through_image_transport_surface.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698