diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 01:42:36 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 01:42:36 +0000 |
commit | fcb846d462bd0d985c94b5bec5a37fa75411c797 (patch) | |
tree | a7f59e309a1f57ea98628a8a42860d2e7a095e16 /cc/test/fake_tile_manager_client.cc | |
parent | b871b360ea4bb73ec539db8a10f1ba47e0eb1e33 (diff) | |
download | chromium_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/test/fake_tile_manager_client.cc')
-rw-r--r-- | cc/test/fake_tile_manager_client.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cc/test/fake_tile_manager_client.cc b/cc/test/fake_tile_manager_client.cc new file mode 100644 index 0000000..29a130d --- /dev/null +++ b/cc/test/fake_tile_manager_client.cc @@ -0,0 +1,14 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "cc/test/fake_tile_manager_client.h" + +namespace cc { + +bool FakeTileManagerClient:: + ShouldForceTileUploadsRequiredForActivationToComplete() const { + return false; +} + +} // namespace cc |