| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/profiler/scoped_tracker.h" | 9 #include "base/profiler/scoped_tracker.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 !layer_tree_host_impl_->active_tree()->needs_update_draw_properties()); | 487 !layer_tree_host_impl_->active_tree()->needs_update_draw_properties()); |
| 488 layer_tree_host_impl_->PrepareTiles(); | 488 layer_tree_host_impl_->PrepareTiles(); |
| 489 layer_tree_host_impl_->SynchronouslyInitializeAllTiles(); | 489 layer_tree_host_impl_->SynchronouslyInitializeAllTiles(); |
| 490 | 490 |
| 491 // TODO(danakj): Don't do this last... we prepared the wrong things. D: | 491 // TODO(danakj): Don't do this last... we prepared the wrong things. D: |
| 492 layer_tree_host_impl_->Animate(); | 492 layer_tree_host_impl_->Animate(); |
| 493 | 493 |
| 494 LayerTreeHostImpl::FrameData frame; | 494 LayerTreeHostImpl::FrameData frame; |
| 495 frame.begin_frame_ack = BeginFrameAck( | 495 frame.begin_frame_ack = BeginFrameAck( |
| 496 begin_frame_args.source_id, begin_frame_args.sequence_number, | 496 begin_frame_args.source_id, begin_frame_args.sequence_number, |
| 497 begin_frame_args.sequence_number, 0, true); | 497 begin_frame_args.sequence_number, true); |
| 498 DoComposite(&frame); | 498 DoComposite(&frame); |
| 499 | 499 |
| 500 // DoComposite could abort, but because this is a synchronous composite | 500 // DoComposite could abort, but because this is a synchronous composite |
| 501 // another draw will never be scheduled, so break remaining promises. | 501 // another draw will never be scheduled, so break remaining promises. |
| 502 layer_tree_host_impl_->active_tree()->BreakSwapPromises( | 502 layer_tree_host_impl_->active_tree()->BreakSwapPromises( |
| 503 SwapPromise::SWAP_FAILS); | 503 SwapPromise::SWAP_FAILS); |
| 504 | 504 |
| 505 DidFinishImplFrame(); | 505 DidFinishImplFrame(); |
| 506 } | 506 } |
| 507 } | 507 } |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 void SingleThreadProxy::DidFinishImplFrame() { | 772 void SingleThreadProxy::DidFinishImplFrame() { |
| 773 layer_tree_host_impl_->DidFinishImplFrame(); | 773 layer_tree_host_impl_->DidFinishImplFrame(); |
| 774 #if DCHECK_IS_ON() | 774 #if DCHECK_IS_ON() |
| 775 DCHECK(inside_impl_frame_) | 775 DCHECK(inside_impl_frame_) |
| 776 << "DidFinishImplFrame called while not inside an impl frame!"; | 776 << "DidFinishImplFrame called while not inside an impl frame!"; |
| 777 inside_impl_frame_ = false; | 777 inside_impl_frame_ = false; |
| 778 #endif | 778 #endif |
| 779 } | 779 } |
| 780 | 780 |
| 781 } // namespace cc | 781 } // namespace cc |
| OLD | NEW |