| 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 Proxy::MainThreadTaskRunner()->PostTask( | 1406 Proxy::MainThreadTaskRunner()->PostTask( |
| 1407 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, | 1407 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, |
| 1408 main_thread_weak_ptr_)); | 1408 main_thread_weak_ptr_)); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 void ThreadProxy::OnDrawForOutputSurface() { | 1411 void ThreadProxy::OnDrawForOutputSurface() { |
| 1412 DCHECK(IsImplThread()); | 1412 DCHECK(IsImplThread()); |
| 1413 impl().scheduler->OnDrawForOutputSurface(); | 1413 impl().scheduler->OnDrawForOutputSurface(); |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 void ThreadProxy::PostFrameTimingEventsOnImplThread( |
| 1417 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 1418 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { |
| 1419 DCHECK(IsImplThread()); |
| 1420 Proxy::MainThreadTaskRunner()->PostTask( |
| 1421 FROM_HERE, |
| 1422 base::Bind(&ThreadProxy::PostFrameTimingEvents, main_thread_weak_ptr_, |
| 1423 base::Passed(composite_events.Pass()), |
| 1424 base::Passed(main_frame_events.Pass()))); |
| 1425 } |
| 1426 |
| 1427 void ThreadProxy::PostFrameTimingEvents( |
| 1428 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 1429 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { |
| 1430 layer_tree_host()->RecordFrameTimingEvents(composite_events.Pass(), |
| 1431 main_frame_events.Pass()); |
| 1432 } |
| 1433 |
| 1416 } // namespace cc | 1434 } // namespace cc |
| OLD | NEW |