Chromium Code Reviews| Index: content/browser/renderer_host/compositor_impl_android.cc |
| diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
| index 6232bcdb434467966c7e2ba5b0d99ad07063a930..f471fbc83171651a0667f2e181c49aed9e9f0ef5 100644 |
| --- a/content/browser/renderer_host/compositor_impl_android.cc |
| +++ b/content/browser/renderer_host/compositor_impl_android.cc |
| @@ -314,7 +314,6 @@ void CompositorImpl::Composite(CompositingTrigger trigger) { |
| // animation updates that will already be reflected in the current frame |
| // we are about to draw. |
| ignore_schedule_composite_ = true; |
| - client_->Layout(); |
| const base::TimeTicks frame_time = gfx::FrameTime::Now(); |
| if (needs_animate_) { |
| @@ -417,6 +416,8 @@ void CompositorImpl::SetVisible(bool visible) { |
| command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); |
| settings.initial_debug_state.show_fps_counter = |
| command_line->HasSwitch(cc::switches::kUIShowFPSCounter); |
| + // TODO(enne): Update this this compositor to use the scheduler. |
| + settings.single_thread_proxy_scheduler = false; |
| host_ = cc::LayerTreeHost::CreateSingleThreaded( |
| this, this, HostSharedBitmapManager::current(), settings); |
| @@ -495,10 +496,9 @@ CreateGpuProcessViewContext( |
| } |
| void CompositorImpl::Layout() { |
| - // TODO: If we get this callback from the SingleThreadProxy, we need |
| - // to stop calling it ourselves in CompositorImpl::Composite(). |
| - NOTREACHED(); |
| + ignore_schedule_composite_ = true; |
| client_->Layout(); |
| + ignore_schedule_composite_ = false; |
| } |
| scoped_ptr<cc::OutputSurface> CompositorImpl::CreateOutputSurface( |
| @@ -577,6 +577,7 @@ void CompositorImpl::DidAbortSwapBuffers() { |
| // This really gets called only once from |
| // SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() when the |
| // context was lost. |
| + ScheduleComposite(); |
|
danakj
2014/06/19 17:20:36
How come this is needed now?
enne (OOO)
2014/06/19 20:32:28
This is the equivalent of the removed lines in voi
|
| client_->OnSwapBuffersCompleted(0); |
| } |