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

Unified 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: Trace event for cheap rasters that weren't. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/picture.h » ('j') | cc/tile_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index d1e90409007a922b5268a96b5b7f4a61af1e3151..322e1438953b7eac0f55eb7897de64509f2c772d 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -846,6 +846,9 @@ bool LayerTreeHostImpl::swapBuffers()
DCHECK(m_renderer);
bool result = m_renderer->swapBuffers();
+ if (m_tileManager)
+ m_tileManager->ResetCheapRasterBudget();
nduca 2013/02/06 08:34:57 Please invert the direciton of this; tile manager
Sami 2013/02/06 15:25:14 Done. I took the "Task" out of the names to keep t
+
if (m_settings.implSidePainting &&
!activeTree()->AreVisibleResourcesReady()) {
m_client->didSwapUseIncompleteTileOnImplThread();
@@ -1064,7 +1067,7 @@ bool LayerTreeHostImpl::initializeRenderer(scoped_ptr<OutputSurface> outputSurfa
return false;
if (m_settings.implSidePainting)
- m_tileManager.reset(new TileManager(this, resourceProvider.get(), m_settings.numRasterThreads, m_settings.recordRenderingStats));
+ m_tileManager.reset(new TileManager(this, resourceProvider.get(), m_settings.numRasterThreads, m_settings.recordRenderingStats, m_settings.useCheapnessEstimator));
if (outputSurface->Capabilities().has_parent_compositor)
m_renderer = DelegatingRenderer::Create(this, outputSurface.get(), resourceProvider.get());
« no previous file with comments | « no previous file | cc/picture.h » ('j') | cc/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698