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

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: Rebase and address comments 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 30f5d0e87bc53e490b80905c4659a76be9527380..035e7cc6c3fd574d1deb69e8fb4000e508feb947 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.
}
@@ -219,7 +220,7 @@ void SynchronousCompositorOutputSurface::InvokeComposite(
did_swap_buffer_ = false;
SetNeedsRedrawRect(gfx::Rect(damage_size));
if (needs_begin_frame_)
- BeginFrame(base::TimeTicks::Now());
+ BeginFrame(BeginFrameArgs::CreateForSynchronousCompositor());
if (did_swap_buffer_)
OnSwapBuffersComplete(NULL);

Powered by Google App Engine
This is Rietveld 408576698