| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 836 } | 836 } | 
| 837 | 837 | 
| 838 void LayerTreeHostImpl::finishAllRendering() | 838 void LayerTreeHostImpl::finishAllRendering() | 
| 839 { | 839 { | 
| 840     if (m_renderer) | 840     if (m_renderer) | 
| 841         m_renderer->finish(); | 841         m_renderer->finish(); | 
| 842 } | 842 } | 
| 843 | 843 | 
| 844 bool LayerTreeHostImpl::isContextLost() | 844 bool LayerTreeHostImpl::isContextLost() | 
| 845 { | 845 { | 
|  | 846     DCHECK(m_proxy->isImplThread()); | 
| 846     return m_renderer && m_renderer->isContextLost(); | 847     return m_renderer && m_renderer->isContextLost(); | 
| 847 } | 848 } | 
| 848 | 849 | 
| 849 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const | 850 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const | 
| 850 { | 851 { | 
| 851     return m_renderer->capabilities(); | 852     return m_renderer->capabilities(); | 
| 852 } | 853 } | 
| 853 | 854 | 
| 854 bool LayerTreeHostImpl::swapBuffers() | 855 bool LayerTreeHostImpl::swapBuffers() | 
| 855 { | 856 { | 
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1672     LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer()); | 1673     LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer()); | 
| 1673     return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); | 1674     return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); | 
| 1674 } | 1675 } | 
| 1675 | 1676 | 
| 1676 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) | 1677 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) | 
| 1677 { | 1678 { | 
| 1678     m_paintTimeCounter->SavePaintTime(totalPaintTime); | 1679     m_paintTimeCounter->SavePaintTime(totalPaintTime); | 
| 1679 } | 1680 } | 
| 1680 | 1681 | 
| 1681 }  // namespace cc | 1682 }  // namespace cc | 
| OLD | NEW | 
|---|