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

Unified Diff: ui/gl/gl_surface.cc

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 | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index f16d498340905e6ea1496b9b9f4d192d97aaa449..f89a699c807be96f4d57f43d2eb8f8180e15d2ac 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -190,6 +190,10 @@ gfx::Vector2d GLSurface::GetDrawOffset() const {
return gfx::Vector2d();
}
+void GLSurface::WaitForSnapshotRendering() {
+ // By default, just executing the SwapBuffers is normally enough.
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Pointer()->Get();
}
@@ -389,6 +393,10 @@ gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const {
return surface_->GetDrawOffset();
}
+void GLSurfaceAdapter::WaitForSnapshotRendering() {
+ surface_->WaitForSnapshotRendering();
+}
+
GLSurfaceAdapter::~GLSurfaceAdapter() {}
scoped_refptr<GLSurface> InitializeGLSurfaceWithFormat(
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698