| 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" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 13 #include "base/trace_event/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
| 14 #include "base/trace_event/trace_event_synthetic_delay.h" | 14 #include "base/trace_event/trace_event_synthetic_delay.h" |
| 15 #include "cc/base/swap_promise.h" | |
| 16 #include "cc/debug/benchmark_instrumentation.h" | 15 #include "cc/debug/benchmark_instrumentation.h" |
| 17 #include "cc/debug/devtools_instrumentation.h" | 16 #include "cc/debug/devtools_instrumentation.h" |
| 18 #include "cc/input/input_handler.h" | 17 #include "cc/input/input_handler.h" |
| 19 #include "cc/output/context_provider.h" | 18 #include "cc/output/context_provider.h" |
| 20 #include "cc/output/output_surface.h" | 19 #include "cc/output/output_surface.h" |
| 20 #include "cc/output/swap_promise.h" |
| 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" |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 } | 1363 } |
| 1364 | 1364 |
| 1365 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { | 1365 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
| 1366 DCHECK(IsImplThread()); | 1366 DCHECK(IsImplThread()); |
| 1367 Proxy::MainThreadTaskRunner()->PostTask( | 1367 Proxy::MainThreadTaskRunner()->PostTask( |
| 1368 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, | 1368 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, |
| 1369 main_thread_weak_ptr_)); | 1369 main_thread_weak_ptr_)); |
| 1370 } | 1370 } |
| 1371 | 1371 |
| 1372 } // namespace cc | 1372 } // namespace cc |
| OLD | NEW |