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

Issue 38553002: cc: Add tile pool to tile manager. (Closed)

Created:
7 years, 1 month ago by vmpstr
Modified:
5 years, 3 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add tile pool to tile manager. This patch pools unused tiles in tile manager and hands them out before allocating new tiles.

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -45 lines) Patch
M base/memory/ref_counted.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/memory/ref_counted.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M cc/base/ref_counted_managed.h View 1 3 chunks +10 lines, -2 lines 0 comments Download
M cc/resources/picture_layer_tiling_perftest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M cc/resources/tile.h View 1 2 3 2 chunks +13 lines, -11 lines 0 comments Download
M cc/resources/tile.cc View 1 2 3 2 chunks +22 lines, -20 lines 0 comments Download
M cc/resources/tile_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 7 chunks +35 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vmpstr
Hey, I'm not sure if this patch is really worth landing, but please take a ...
7 years, 1 month ago (2013-10-24 22:53:55 UTC) #1
reveman
On 2013/10/24 22:53:55, vmpstr wrote: > Hey, > > I'm not sure if this patch ...
7 years, 1 month ago (2013-10-25 13:27:38 UTC) #2
vmpstr
> Is this just heap allocation overhead or is there something more to it? AFAIK ...
7 years, 1 month ago (2013-10-25 18:34:38 UTC) #3
reveman
On 2013/10/25 18:34:38, vmpstr wrote: > > Is this just heap allocation overhead or is ...
7 years, 1 month ago (2013-10-25 18:53:55 UTC) #4
vmpstr
7 years, 1 month ago (2013-10-28 17:35:40 UTC) #5
On 2013/10/25 18:53:55, David Reveman wrote:
> On 2013/10/25 18:34:38, vmpstr wrote:
> > > Is this just heap allocation overhead or is there something more to it?
> > 
> > AFAIK it's mostly heap allocation. There might be a component of
initializing
> > tile/managed state/tile versions as well since we're skipping some of that
as
> > well, but I was actually thinking of adding full clear as well in order to
> avoid
> > any side effects
> 
> If there's some state that doesn't need to be initialized when reusing tiles
> maybe it also doesn't need to be initialized in the first place?
> 
> I don't think removing the heap allocations is worth it if an invalidation
size
> of 25x50 is enough to make it an insignificant improvement.

Just to note that's 25x50 tiles, not pixels. But I agree that this might be
complicating the code for not that much benefit. Re initialization: I think most
of the work here is default constructor things that we rely on (like
TilePriority), so I doubt we can justify removing it.

I'll keep this open just for reference, in case we find another good use of
using RefCountedManaged with some sort of pooling. Feel free to remove yourself
from the reviewers, so it doesn't clutter your inbox :)

Powered by Google App Engine
This is Rietveld 408576698