From 768c8ac24488b949f2d3a00450a49ee14a71cc5a Mon Sep 17 00:00:00 2001 From: "nduca@chromium.org" Date: Wed, 13 Feb 2013 03:29:57 +0000 Subject: 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 --- cc/tile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc/tile.h') diff --git a/cc/tile.h b/cc/tile.h index 7428a3c..e02415a 100644 --- a/cc/tile.h +++ b/cc/tile.h @@ -97,7 +97,7 @@ class CC_EXPORT Tile : public base::RefCounted { float contents_scale_; gfx::Rect opaque_rect_; - TilePriority priority_[2]; + TilePriority priority_[NUM_BIN_PRIORITIES]; ManagedTileState managed_state_; }; -- cgit v1.1