| 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 return m_renderer && m_renderer->isContextLost(); | 856 return m_renderer && m_renderer->isContextLost(); |
| 857 } | 857 } |
| 858 | 858 |
| 859 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const | 859 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const |
| 860 { | 860 { |
| 861 return m_renderer->capabilities(); | 861 return m_renderer->capabilities(); |
| 862 } | 862 } |
| 863 | 863 |
| 864 bool LayerTreeHostImpl::swapBuffers() | 864 bool LayerTreeHostImpl::swapBuffers() |
| 865 { | 865 { |
| 866 if (m_tileManager) |
| 867 m_tileManager->DidCompleteFrame(); |
| 866 return m_renderer->swapBuffers(); | 868 return m_renderer->swapBuffers(); |
| 867 } | 869 } |
| 868 | 870 |
| 869 const gfx::Size& LayerTreeHostImpl::deviceViewportSize() const | 871 const gfx::Size& LayerTreeHostImpl::deviceViewportSize() const |
| 870 { | 872 { |
| 871 return m_deviceViewportSize; | 873 return m_deviceViewportSize; |
| 872 } | 874 } |
| 873 | 875 |
| 874 const LayerTreeSettings& LayerTreeHostImpl::settings() const | 876 const LayerTreeSettings& LayerTreeHostImpl::settings() const |
| 875 { | 877 { |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 if (m_tileManager) | 1767 if (m_tileManager) |
| 1766 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats
()); | 1768 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats
()); |
| 1767 } | 1769 } |
| 1768 | 1770 |
| 1769 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) | 1771 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) |
| 1770 { | 1772 { |
| 1771 m_paintTimeCounter->SavePaintTime(totalPaintTime); | 1773 m_paintTimeCounter->SavePaintTime(totalPaintTime); |
| 1772 } | 1774 } |
| 1773 | 1775 |
| 1774 } // namespace cc | 1776 } // namespace cc |
| OLD | NEW |