summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_impl.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 01:42:36 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 01:42:36 +0000
commitfcb846d462bd0d985c94b5bec5a37fa75411c797 (patch)
treea7f59e309a1f57ea98628a8a42860d2e7a095e16 /cc/trees/layer_tree_impl.h
parentb871b360ea4bb73ec539db8a10f1ba47e0eb1e33 (diff)
downloadchromium_src-fcb846d462bd0d985c94b5bec5a37fa75411c797.zip
chromium_src-fcb846d462bd0d985c94b5bec5a37fa75411c797.tar.gz
chromium_src-fcb846d462bd0d985c94b5bec5a37fa75411c797.tar.bz2
cc: Move activation check into TileManager
Currently "AreVisibleResourcesReady" requires a tree and tiling walk to calculate, which means that it's not going to be cheap enough to call repeatedly during a frame. This is one step towards making activation happen sooner. This patch only changes "AreVisibleResourcesReady" into "MarkVisibleResourcesAsRequired", marking individual tiles as being required for activation. The TileManager recalculates the set of required tiles when assigning gpu memory, so that "required" tiles that don't get memory won't be considered. This lets it very cheaply determine how many outstanding tiles are needed for the frame. R=danakj@chromium.org,reveman@chromium.org BUG=236648 Review URL: https://chromiumcodereview.appspot.com/14660027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_impl.h')
-rw-r--r--cc/trees/layer_tree_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index dea7d5b..3af49ca 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -151,8 +151,6 @@ class CC_EXPORT LayerTreeImpl {
void ClearRenderSurfaces();
- bool AreVisibleResourcesReady() const;
-
const LayerImplList& RenderSurfaceLayerList() const;
// These return the size of the root scrollable area and the size of
@@ -192,6 +190,8 @@ class CC_EXPORT LayerTreeImpl {
const LatencyInfo& GetLatencyInfo();
void ClearLatencyInfo();
+ void WillModifyTilePriorities();
+
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);