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

Issue 1168903003: cc: Fix size_t to int truncations in tiles/ and trees/ (Closed)

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

Description

cc: Fix size_t to int truncations in tiles/ and trees/ This patch fixes size_t to int truncations for tiles/ and trees/ directories in cc. BUG=167187 R=danakj CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/24b32b3ee27a1fa020cf1b263bc71fbc8f077b2d Cr-Commit-Position: refs/heads/master@{#333598}

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : update #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -118 lines) Patch
M cc/layers/layer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/memory_history.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/memory_history.cc View 1 2 3 4 5 1 chunk +0 lines, -17 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/picture_layer_tiling.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/tiles/picture_layer_tiling_set.h View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set.cc View 1 2 3 9 chunks +15 lines, -20 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set_unittest.cc View 1 2 4 chunks +33 lines, -33 lines 0 comments Download
M cc/tiles/tile.cc View 2 chunks +3 lines, -1 line 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 5 chunks +19 lines, -5 lines 0 comments Download
M cc/tiles/tile_priority.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M cc/tiles/tiling_set_eviction_queue.cc View 1 2 3 1 chunk +12 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +13 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
vmpstr
Please take a look.
5 years, 6 months ago (2015-06-09 01:42:18 UTC) #1
danakj
https://codereview.chromium.org/1168903003/diff/20001/cc/layers/layer.h File cc/layers/layer.h (right): https://codereview.chromium.org/1168903003/diff/20001/cc/layers/layer.h#newcode638 cc/layers/layer.h:638: size_t num_dependents_need_push_properties_; How come? We just ++ and -- ...
5 years, 6 months ago (2015-06-09 17:39:50 UTC) #2
vmpstr
https://codereview.chromium.org/1168903003/diff/20001/cc/layers/layer.h File cc/layers/layer.h (right): https://codereview.chromium.org/1168903003/diff/20001/cc/layers/layer.h#newcode638 cc/layers/layer.h:638: size_t num_dependents_need_push_properties_; On 2015/06/09 17:39:49, danakj wrote: > How ...
5 years, 6 months ago (2015-06-09 18:37:17 UTC) #3
danakj
lgtm https://codereview.chromium.org/1168903003/diff/20001/cc/tiles/tile_manager.cc File cc/tiles/tile_manager.cc (right): https://codereview.chromium.org/1168903003/diff/20001/cc/tiles/tile_manager.cc#newcode978 cc/tiles/tile_manager.cc:978: // particular operator-=) can cause internal values to ...
5 years, 6 months ago (2015-06-09 19:05:47 UTC) #4
danakj
https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h#newcode216 cc/tiles/tile_manager.h:216: MemoryUsage(size_t memory_bytes, size_t resource_count); Why are these size_t then ...
5 years, 6 months ago (2015-06-09 20:16:46 UTC) #5
vmpstr
https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h#newcode216 cc/tiles/tile_manager.h:216: MemoryUsage(size_t memory_bytes, size_t resource_count); On 2015/06/09 20:16:45, danakj wrote: ...
5 years, 6 months ago (2015-06-09 20:27:33 UTC) #6
danakj
https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h#newcode226 cc/tiles/tile_manager.h:226: size_t memory_bytes() const { Can you make this return ...
5 years, 6 months ago (2015-06-09 20:29:43 UTC) #7
vmpstr
PTAL https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1168903003/diff/60001/cc/tiles/tile_manager.h#newcode226 cc/tiles/tile_manager.h:226: size_t memory_bytes() const { On 2015/06/09 20:29:42, danakj ...
5 years, 6 months ago (2015-06-09 21:00:56 UTC) #8
danakj
LGTM !
5 years, 6 months ago (2015-06-09 21:04:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1168903003/120001
5 years, 6 months ago (2015-06-09 21:08:26 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-09 22:39:44 UTC) #12
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 22:41:30 UTC) #13
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/24b32b3ee27a1fa020cf1b263bc71fbc8f077b2d
Cr-Commit-Position: refs/heads/master@{#333598}

Powered by Google App Engine
This is Rietveld 408576698