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