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/proxy.h" | 5 #include "cc/trees/proxy.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 | 11 |
12 base::SingleThreadTaskRunner* Proxy::MainThreadTaskRunner() const { | 12 base::SingleThreadTaskRunner* Proxy::MainThreadTaskRunner() const { |
13 return main_task_runner_.get(); | 13 return main_task_runner_.get(); |
14 } | 14 } |
15 | 15 |
16 bool Proxy::HasImplThread() const { return !!impl_task_runner_.get(); } | 16 bool Proxy::HasImplThread() const { return !!impl_task_runner_.get(); } |
17 | 17 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 Proxy::~Proxy() { | 76 Proxy::~Proxy() { |
77 DCHECK(IsMainThread()); | 77 DCHECK(IsMainThread()); |
78 } | 78 } |
79 | 79 |
80 std::string Proxy::SchedulerStateAsStringForTesting() { | 80 std::string Proxy::SchedulerStateAsStringForTesting() { |
81 return ""; | 81 return ""; |
82 } | 82 } |
83 | 83 |
84 } // namespace cc | 84 } // namespace cc |
OLD | NEW |