| 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/thread_proxy.h" | 5 #include "cc/trees/thread_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "cc/quads/draw_quad.h" | 21 #include "cc/quads/draw_quad.h" |
| 22 #include "cc/resources/prioritized_resource_manager.h" | 22 #include "cc/resources/prioritized_resource_manager.h" |
| 23 #include "cc/scheduler/commit_earlyout_reason.h" | 23 #include "cc/scheduler/commit_earlyout_reason.h" |
| 24 #include "cc/scheduler/delay_based_time_source.h" | 24 #include "cc/scheduler/delay_based_time_source.h" |
| 25 #include "cc/scheduler/scheduler.h" | 25 #include "cc/scheduler/scheduler.h" |
| 26 #include "cc/trees/blocking_task_runner.h" | 26 #include "cc/trees/blocking_task_runner.h" |
| 27 #include "cc/trees/layer_tree_host.h" | 27 #include "cc/trees/layer_tree_host.h" |
| 28 #include "cc/trees/layer_tree_impl.h" | 28 #include "cc/trees/layer_tree_impl.h" |
| 29 #include "cc/trees/scoped_abort_remaining_swap_promises.h" | 29 #include "cc/trees/scoped_abort_remaining_swap_promises.h" |
| 30 #include "gpu/command_buffer/client/gles2_interface.h" | 30 #include "gpu/command_buffer/client/gles2_interface.h" |
| 31 #include "ui/gfx/frame_time.h" | |
| 32 | 31 |
| 33 namespace cc { | 32 namespace cc { |
| 34 | 33 |
| 35 namespace { | 34 namespace { |
| 36 | 35 |
| 37 // Measured in seconds. | 36 // Measured in seconds. |
| 38 const double kSmoothnessTakesPriorityExpirationDelay = 0.25; | 37 const double kSmoothnessTakesPriorityExpirationDelay = 0.25; |
| 39 | 38 |
| 40 unsigned int nextBeginFrameId = 0; | 39 unsigned int nextBeginFrameId = 0; |
| 41 | 40 |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, | 1406 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, |
| 1408 main_thread_weak_ptr_)); | 1407 main_thread_weak_ptr_)); |
| 1409 } | 1408 } |
| 1410 | 1409 |
| 1411 void ThreadProxy::OnDrawForOutputSurface() { | 1410 void ThreadProxy::OnDrawForOutputSurface() { |
| 1412 DCHECK(IsImplThread()); | 1411 DCHECK(IsImplThread()); |
| 1413 impl().scheduler->OnDrawForOutputSurface(); | 1412 impl().scheduler->OnDrawForOutputSurface(); |
| 1414 } | 1413 } |
| 1415 | 1414 |
| 1416 } // namespace cc | 1415 } // namespace cc |
| OLD | NEW |