Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 12194015: cc: Rasterize cheap tiles immediately (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix picture pile reference management. Post a task for running cheap tasks. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/picture.h » ('j') | cc/raster_worker_pool.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/picture.h » ('j') | cc/raster_worker_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698