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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1244 &main_frame_will_happen)); | 1244 &main_frame_will_happen)); |
1245 completion.Wait(); | 1245 completion.Wait(); |
1246 } | 1246 } |
1247 return main_frame_will_happen; | 1247 return main_frame_will_happen; |
1248 } | 1248 } |
1249 | 1249 |
1250 void ThreadProxy::SetChildrenNeedBeginFrames(bool children_need_begin_frames) { | 1250 void ThreadProxy::SetChildrenNeedBeginFrames(bool children_need_begin_frames) { |
1251 NOTREACHED() << "Only used by SingleThreadProxy"; | 1251 NOTREACHED() << "Only used by SingleThreadProxy"; |
1252 } | 1252 } |
1253 | 1253 |
1254 void ThreadProxy::SetAuthoritativeVSyncInterval(base::TimeDelta interval) { | |
1255 NOTREACHED() << "Only used by SingleThreadProxy"; | |
brianderson
2014/12/12 01:11:39
I think this will be true after CrOS is STP. If yo
| |
1256 } | |
1257 | |
1254 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting( | 1258 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting( |
1255 CompletionEvent* completion, | 1259 CompletionEvent* completion, |
1256 bool* main_frame_will_happen) { | 1260 bool* main_frame_will_happen) { |
1257 DCHECK(IsImplThread()); | 1261 DCHECK(IsImplThread()); |
1258 if (impl().layer_tree_host_impl->output_surface()) { | 1262 if (impl().layer_tree_host_impl->output_surface()) { |
1259 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen(); | 1263 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen(); |
1260 } else { | 1264 } else { |
1261 *main_frame_will_happen = false; | 1265 *main_frame_will_happen = false; |
1262 } | 1266 } |
1263 completion->Signal(); | 1267 completion->Signal(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1334 | 1338 |
1335 impl().timing_history.DidActivateSyncTree(); | 1339 impl().timing_history.DidActivateSyncTree(); |
1336 } | 1340 } |
1337 | 1341 |
1338 void ThreadProxy::DidPrepareTiles() { | 1342 void ThreadProxy::DidPrepareTiles() { |
1339 DCHECK(IsImplThread()); | 1343 DCHECK(IsImplThread()); |
1340 impl().scheduler->DidPrepareTiles(); | 1344 impl().scheduler->DidPrepareTiles(); |
1341 } | 1345 } |
1342 | 1346 |
1343 } // namespace cc | 1347 } // namespace cc |
OLD | NEW |