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

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: Schedule cheap tasks in worker pool. 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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