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

Unified Diff: content/browser/android/in_process/synchronous_compositor_output_surface.cc

Issue 16863005: cc: Add BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc12
Patch Set: Created 7 years, 6 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
Index: content/browser/android/in_process/synchronous_compositor_output_surface.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_output_surface.cc b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
index 251e6ddee97e07e2f910a2c9097c1c774dac558d..5946154a94850a6b3d791542f68a53fb5d4922ee 100644
--- a/content/browser/android/in_process/synchronous_compositor_output_surface.cc
+++ b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
@@ -90,6 +90,7 @@ SynchronousCompositorOutputSurface::SynchronousCompositorOutputSurface(
did_swap_buffer_(false),
current_sw_canvas_(NULL) {
capabilities_.deferred_gl_initialization = true;
+ capabilities_.has_parent_compositor = false;
// Cannot call out to GetDelegate() here as the output surface is not
// constructed on the correct thread.
}
@@ -216,7 +217,7 @@ void SynchronousCompositorOutputSurface::InvokeComposite(
did_swap_buffer_ = false;
SetNeedsRedrawRect(gfx::Rect(damage_size));
if (needs_begin_frame_)
- BeginFrame(base::TimeTicks::Now());
+ BeginFrame(BeginFrameArgs::CreateBeginFrameForSynchronousCompositor());
if (did_swap_buffer_)
OnSwapBuffersComplete(NULL);

Powered by Google App Engine
This is Rietveld 408576698