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

Issue 2240993002: Change ResourcePool reuse to have looser size constraints. (Closed)

Created:
4 years, 4 months ago by erikchen
Modified:
4 years, 4 months ago
Reviewers:
ccameron
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@temp73_rp_refactor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ResourcePool reuse to have looser size constraints. This CL changes ReuseResource to take two parameters |min_size| and |max_size|. The returned resource will be the resource closest in size to |min_size|, guaranteed to be no larger than |max_size|. BUG=581526, 636884 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -15 lines) Patch
M cc/resources/resource_pool.h View 1 chunk +5 lines, -2 lines 0 comments Download
M cc/resources/resource_pool.cc View 2 chunks +34 lines, -13 lines 0 comments Download
M cc/resources/resource_pool_unittest.cc View 1 chunk +56 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (10 generated)
erikchen
4 years, 4 months ago (2016-08-12 22:15:32 UTC) #8

          

Powered by Google App Engine
This is Rietveld 408576698