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

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: Post a task to run 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 if (m_tileManager) 1774 if (m_tileManager)
1773 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ()); 1775 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ());
1774 } 1776 }
1775 1777
1776 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) 1778 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime)
1777 { 1779 {
1778 m_paintTimeCounter->SavePaintTime(totalPaintTime); 1780 m_paintTimeCounter->SavePaintTime(totalPaintTime);
1779 } 1781 }
1780 1782
1781 } // namespace cc 1783 } // 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