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

Issue 15715031: cc: Remove memory state from tile management (Closed)

Created:
7 years, 6 months ago by vmpstr
Modified:
7 years, 6 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

cc: Remove memory state from tile management After the upload is moved into its own class, the tile can either have a resource or not. If it doesn't have a resource, but has a raster task, the memory is unreleasable. That makes all the memory states are implicit. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203901

Patch Set 1 #

Total comments: 6

Patch Set 2 : review #

Total comments: 8

Patch Set 3 : review #

Total comments: 1

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -97 lines) Patch
M cc/resources/managed_tile_state.h View 1 2 5 chunks +7 lines, -17 lines 0 comments Download
M cc/resources/managed_tile_state.cc View 3 chunks +1 line, -31 lines 0 comments Download
M cc/resources/picture_layer_tiling_set_unittest.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M cc/resources/resource_pool.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/tile.h View 1 chunk +6 lines, -2 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 10 chunks +28 lines, -39 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 5 chunks +10 lines, -2 lines 0 comments Download
M cc/test/fake_tile_manager.h View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vmpstr
PTAL. This depends on https://codereview.chromium.org/16190002/
7 years, 6 months ago (2013-05-31 18:05:25 UTC) #1
reveman
https://codereview.chromium.org/15715031/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/15715031/diff/1/cc/resources/tile_manager.cc#newcode350 cc/resources/tile_manager.cc:350: if (!tile->managed_state().raster_task.is_null()) This is not the same. raster_task is ...
7 years, 6 months ago (2013-06-03 14:11:34 UTC) #2
vmpstr
PTAL. https://codereview.chromium.org/15715031/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/15715031/diff/1/cc/resources/tile_manager.cc#newcode350 cc/resources/tile_manager.cc:350: if (!tile->managed_state().raster_task.is_null()) On 2013/06/03 14:11:34, David Reveman wrote: ...
7 years, 6 months ago (2013-06-03 17:08:26 UTC) #3
reveman
almost there https://codereview.chromium.org/15715031/diff/5001/cc/resources/managed_tile_state.h File cc/resources/managed_tile_state.h (right): https://codereview.chromium.org/15715031/diff/5001/cc/resources/managed_tile_state.h#newcode43 cc/resources/managed_tile_state.h:43: return (resource_ ? resource_->id() : resource_id_); nit: ...
7 years, 6 months ago (2013-06-03 18:07:23 UTC) #4
vmpstr
PTAL. https://codereview.chromium.org/15715031/diff/5001/cc/resources/managed_tile_state.h File cc/resources/managed_tile_state.h (right): https://codereview.chromium.org/15715031/diff/5001/cc/resources/managed_tile_state.h#newcode43 cc/resources/managed_tile_state.h:43: return (resource_ ? resource_->id() : resource_id_); On 2013/06/03 ...
7 years, 6 months ago (2013-06-03 18:25:48 UTC) #5
reveman
lgtm https://codereview.chromium.org/15715031/diff/10002/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/15715031/diff/10002/cc/resources/tile_manager.cc#newcode416 cc/resources/tile_manager.cc:416: static_cast<int64>(resource_pool_->acquired_memory_usage_bytes()); consider using: int64 bytes_available = memory_limit_in_bytes - ...
7 years, 6 months ago (2013-06-03 19:48:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/15715031/1009
7 years, 6 months ago (2013-06-03 21:33:53 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 07:39:54 UTC) #8
Message was sent while issue was closed.
Change committed as 203901

Powered by Google App Engine
This is Rietveld 408576698