| 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 return m_renderer && m_renderer->isContextLost(); | 860 return m_renderer && m_renderer->isContextLost(); |
| 861 } | 861 } |
| 862 | 862 |
| 863 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const | 863 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const |
| 864 { | 864 { |
| 865 return m_renderer->capabilities(); | 865 return m_renderer->capabilities(); |
| 866 } | 866 } |
| 867 | 867 |
| 868 bool LayerTreeHostImpl::swapBuffers() | 868 bool LayerTreeHostImpl::swapBuffers() |
| 869 { | 869 { |
| 870 if (m_tileManager) |
| 871 m_tileManager->DidCompleteFrame(); |
| 870 return m_renderer->swapBuffers(); | 872 return m_renderer->swapBuffers(); |
| 871 } | 873 } |
| 872 | 874 |
| 873 const gfx::Size& LayerTreeHostImpl::deviceViewportSize() const | 875 const gfx::Size& LayerTreeHostImpl::deviceViewportSize() const |
| 874 { | 876 { |
| 875 return m_deviceViewportSize; | 877 return m_deviceViewportSize; |
| 876 } | 878 } |
| 877 | 879 |
| 878 const LayerTreeSettings& LayerTreeHostImpl::settings() const | 880 const LayerTreeSettings& LayerTreeHostImpl::settings() const |
| 879 { | 881 { |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats
()); | 1793 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats
()); |
| 1792 } | 1794 } |
| 1793 | 1795 |
| 1794 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int
commitNumber) | 1796 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int
commitNumber) |
| 1795 { | 1797 { |
| 1796 DCHECK(m_debugState.continuousPainting); | 1798 DCHECK(m_debugState.continuousPainting); |
| 1797 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber); | 1799 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber); |
| 1798 } | 1800 } |
| 1799 | 1801 |
| 1800 } // namespace cc | 1802 } // namespace cc |
| OLD | NEW |