diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 03:29:57 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 03:29:57 +0000 |
commit | 768c8ac24488b949f2d3a00450a49ee14a71cc5a (patch) | |
tree | a422be36c4e0582e2054a9290b75bb594ae5d32d /cc/tile.h | |
parent | 1ab6de81df18b445993d81c16cfab2ae5b419b5d (diff) | |
download | chromium_src-768c8ac24488b949f2d3a00450a49ee14a71cc5a.zip chromium_src-768c8ac24488b949f2d3a00450a49ee14a71cc5a.tar.gz chromium_src-768c8ac24488b949f2d3a00450a49ee14a71cc5a.tar.bz2 |
Added a vector to TileManager to explicitly track live or allocated tiles.
The new vector should be exactly the elements that AssignGpuMemoryToTiles cares about. In addition this patch fuses some loops (4 loops fused into 2). I'm measuring about a 70% performance boost to ManageTiles on my linux machine.
BUG=174707
Review URL: https://codereview.chromium.org/12226046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/tile.h')
-rw-r--r-- | cc/tile.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> { float contents_scale_; gfx::Rect opaque_rect_; - TilePriority priority_[2]; + TilePriority priority_[NUM_BIN_PRIORITIES]; ManagedTileState managed_state_; }; |