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

Unified Diff: cc/output/gl_renderer.cc

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Hook up MusBrowserCompositorOutputSurface's BeginFrameSource. Created 4 years 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
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 002f32c4ab21a854ea6fea6602830842d28940aa..eb885801caa6d1724d10c1fbba66e0e8744ddbf5 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2892,7 +2892,7 @@ void GLRenderer::DrawQuadGeometry(const gfx::Transform& projection_matrix,
gl_->DrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, 0);
}
-void GLRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
+void GLRenderer::SwapBuffers(OutputSurfaceFrame output_frame) {
DCHECK(visible_);
TRACE_EVENT0("cc", "GLRenderer::SwapBuffers");
@@ -2900,8 +2900,6 @@ void GLRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
gfx::Size surface_size = surface_size_for_swap_buffers();
- OutputSurfaceFrame output_frame;
- output_frame.latency_info = std::move(latency_info);
output_frame.size = surface_size;
if (use_partial_swap_) {
// If supported, we can save significant bandwidth by only swapping the

Powered by Google App Engine
This is Rietveld 408576698