| 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/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 418 |
| 419 void LayerTreeHost::setNeedsAnimate() | 419 void LayerTreeHost::setNeedsAnimate() |
| 420 { | 420 { |
| 421 DCHECK(m_proxy->hasImplThread()); | 421 DCHECK(m_proxy->hasImplThread()); |
| 422 m_proxy->setNeedsAnimate(); | 422 m_proxy->setNeedsAnimate(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 void LayerTreeHost::setNeedsCommit() | 425 void LayerTreeHost::setNeedsCommit() |
| 426 { | 426 { |
| 427 if (!m_prepaintCallback.IsCancelled()) { | 427 if (!m_prepaintCallback.IsCancelled()) { |
| 428 TRACE_EVENT_INSTANT0("cc", "LayerTreeHost::setNeedsCommit::cancel prepai
nt"); | 428 TRACE_EVENT_INSTANT0("cc", "LayerTreeHost::setNeedsCommit::cancel prepai
nt", |
| 429 TRACE_EVENT_SCOPE_THREAD); |
| 429 m_prepaintCallback.Cancel(); | 430 m_prepaintCallback.Cancel(); |
| 430 } | 431 } |
| 431 m_proxy->setNeedsCommit(); | 432 m_proxy->setNeedsCommit(); |
| 432 } | 433 } |
| 433 | 434 |
| 434 void LayerTreeHost::setNeedsFullTreeSync() | 435 void LayerTreeHost::setNeedsFullTreeSync() |
| 435 { | 436 { |
| 436 m_needsFullTreeSync = true; | 437 m_needsFullTreeSync = true; |
| 437 setNeedsCommit(); | 438 setNeedsCommit(); |
| 438 } | 439 } |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 878 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 878 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 879 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 879 } | 880 } |
| 880 | 881 |
| 881 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() | 882 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() |
| 882 { | 883 { |
| 883 return m_proxy->capturePicture(); | 884 return m_proxy->capturePicture(); |
| 884 } | 885 } |
| 885 | 886 |
| 886 } // namespace cc | 887 } // namespace cc |
| OLD | NEW |