| 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_impl.h" | 5 #include "cc/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 } | 944 } |
| 945 | 945 |
| 946 void LayerTreeHostImpl::finishAllRendering() | 946 void LayerTreeHostImpl::finishAllRendering() |
| 947 { | 947 { |
| 948 if (m_renderer) | 948 if (m_renderer) |
| 949 m_renderer->finish(); | 949 m_renderer->finish(); |
| 950 } | 950 } |
| 951 | 951 |
| 952 bool LayerTreeHostImpl::isContextLost() | 952 bool LayerTreeHostImpl::isContextLost() |
| 953 { | 953 { |
| 954 DCHECK(m_proxy->isImplThread()); |
| 954 return m_renderer && m_renderer->isContextLost(); | 955 return m_renderer && m_renderer->isContextLost(); |
| 955 } | 956 } |
| 956 | 957 |
| 957 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const | 958 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const |
| 958 { | 959 { |
| 959 return m_renderer->capabilities(); | 960 return m_renderer->capabilities(); |
| 960 } | 961 } |
| 961 | 962 |
| 962 bool LayerTreeHostImpl::swapBuffers() | 963 bool LayerTreeHostImpl::swapBuffers() |
| 963 { | 964 { |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1757 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1758 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
| 1758 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1759 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
| 1759 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1760 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1760 m_client->setNeedsRedrawOnImplThread(); | 1761 m_client->setNeedsRedrawOnImplThread(); |
| 1761 | 1762 |
| 1762 for (size_t i = 0; i < layer->children().size(); ++i) | 1763 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1763 animateScrollbarsRecursive(layer->children()[i], time); | 1764 animateScrollbarsRecursive(layer->children()[i], time); |
| 1764 } | 1765 } |
| 1765 | 1766 |
| 1766 } // namespace cc | 1767 } // namespace cc |
| OLD | NEW |