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

Issue 537943003: Releasing Track & Thumb UIResources based on their Geometry (Closed)

Created:
6 years, 3 months ago by MuVen
Modified:
6 years, 3 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org, Sikugu_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Releasing Track & Thumb UIResources based on their Geometry When the track rect or scaled track rect is empty, UiResources of Track and Thumb resources are released, instead of holding in the memory. These UIResources will be created on PaintedScrollbarLayer::Update when the Track rect is not empty. Similary When Scrollbar doesnt have Thumb release UIResources of Thumb. Bug=410845 Committed: https://crrev.com/8eff0dbb847db5a65dbc6c89466e6c72ec9f11a8 Cr-Commit-Position: refs/heads/master@{#295515}

Patch Set 1 #

Patch Set 2 : UI resources changed so push properties is needed #

Patch Set 3 : Releasing Track & Thumb UIResources based on their Geometry #

Total comments: 2

Patch Set 4 : Addressed review comments #

Total comments: 16

Patch Set 5 : Addressed Review comments #

Total comments: 2

Patch Set 6 : addressed review comments and modified unittest #

Total comments: 4

Patch Set 7 : updated review comments #

Total comments: 8

Patch Set 8 : Addressed review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -17 lines) Patch
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 4 5 6 7 4 chunks +24 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 9 chunks +155 lines, -13 lines 1 comment Download

Messages

Total messages: 29 (9 generated)
MuVen
PTAL. Thanks,
6 years, 3 months ago (2014-09-04 14:21:59 UTC) #2
danakj
https://codereview.chromium.org/537943003/diff/60001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/60001/cc/layers/painted_scrollbar_layer.cc#newcode212 cc/layers/painted_scrollbar_layer.cc:212: SetNeedsPushProperties(); these need to make Update() return true also, ...
6 years, 3 months ago (2014-09-04 16:38:10 UTC) #4
MuVen
addressed review comments https://codereview.chromium.org/537943003/diff/60001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/60001/cc/layers/painted_scrollbar_layer.cc#newcode212 cc/layers/painted_scrollbar_layer.cc:212: SetNeedsPushProperties(); On 2014/09/04 16:38:10, danakj wrote: ...
6 years, 3 months ago (2014-09-05 14:44:13 UTC) #6
MuVen
On 2014/09/05 14:44:13, muven wrote: > addressed review comments > > https://codereview.chromium.org/537943003/diff/60001/cc/layers/painted_scrollbar_layer.cc > File cc/layers/painted_scrollbar_layer.cc ...
6 years, 3 months ago (2014-09-08 18:09:17 UTC) #7
danakj
https://codereview.chromium.org/537943003/diff/100001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/100001/cc/layers/painted_scrollbar_layer.cc#newcode202 cc/layers/painted_scrollbar_layer.cc:202: ReleaseUIResources(ScrollbarUIResource::Thumb); can you move this into the Update() method ...
6 years, 3 months ago (2014-09-09 15:35:06 UTC) #8
MuVen
Hi Dana, In confusion i have deleted the patch uploaded previously where the review comments ...
6 years, 3 months ago (2014-09-10 15:40:58 UTC) #11
danakj
Thanks I like the inline release better, it is easier to see what's going on. ...
6 years, 3 months ago (2014-09-10 16:15:03 UTC) #12
MuVen
Hi Dana, PTAL. Thanks, https://codereview.chromium.org/537943003/diff/140001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/140001/cc/layers/painted_scrollbar_layer.cc#newcode214 cc/layers/painted_scrollbar_layer.cc:214: if (track_resource_ && thumb_resource_) { ...
6 years, 3 months ago (2014-09-11 14:07:22 UTC) #13
danakj
https://codereview.chromium.org/537943003/diff/160001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/160001/cc/layers/painted_scrollbar_layer.cc#newcode220 cc/layers/painted_scrollbar_layer.cc:220: return true; but this should return false if you ...
6 years, 3 months ago (2014-09-11 17:22:01 UTC) #14
MuVen
PTAL. Thanks, https://codereview.chromium.org/537943003/diff/160001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/160001/cc/layers/painted_scrollbar_layer.cc#newcode220 cc/layers/painted_scrollbar_layer.cc:220: return true; On 2014/09/11 17:22:01, danakj wrote: ...
6 years, 3 months ago (2014-09-11 18:44:42 UTC) #15
danakj
https://codereview.chromium.org/537943003/diff/180001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode212 cc/layers/painted_scrollbar_layer.cc:212: bool needs_update = false; nit: updated https://codereview.chromium.org/537943003/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode228 cc/layers/painted_scrollbar_layer.cc:228: return ...
6 years, 3 months ago (2014-09-11 20:12:56 UTC) #16
MuVen
PTAL. thanks. https://codereview.chromium.org/537943003/diff/180001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/180001/cc/layers/painted_scrollbar_layer.cc#newcode212 cc/layers/painted_scrollbar_layer.cc:212: bool needs_update = false; On 2014/09/11 20:12:56, ...
6 years, 3 months ago (2014-09-12 14:09:12 UTC) #17
danakj
https://codereview.chromium.org/537943003/diff/200001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/200001/cc/layers/painted_scrollbar_layer.cc#newcode226 cc/layers/painted_scrollbar_layer.cc:226: SetNeedsPushProperties(); Thanks, can you add a test that will ...
6 years, 3 months ago (2014-09-15 18:16:27 UTC) #18
MuVen
PTAL. Updated review comments. https://codereview.chromium.org/537943003/diff/200001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/537943003/diff/200001/cc/layers/painted_scrollbar_layer.cc#newcode226 cc/layers/painted_scrollbar_layer.cc:226: SetNeedsPushProperties(); On 2014/09/15 18:16:27, danakj ...
6 years, 3 months ago (2014-09-16 13:34:31 UTC) #20
MuVen
On 2014/09/16 13:34:31, muven wrote: > PTAL. Updated review comments. > > https://codereview.chromium.org/537943003/diff/200001/cc/layers/painted_scrollbar_layer.cc > File ...
6 years, 3 months ago (2014-09-18 16:46:06 UTC) #23
danakj
LGTM https://codereview.chromium.org/537943003/diff/240001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/537943003/diff/240001/cc/layers/scrollbar_layer_unittest.cc#newcode828 cc/layers/scrollbar_layer_unittest.cc:828: EXPECT_EQ(expected_created, layer_tree_host_->TotalUIResourceCreated()); oh these checks are great, thanks.
6 years, 3 months ago (2014-09-18 18:04:46 UTC) #24
MuVen
On 2014/09/18 18:04:46, danakj wrote: > LGTM > > https://codereview.chromium.org/537943003/diff/240001/cc/layers/scrollbar_layer_unittest.cc > File cc/layers/scrollbar_layer_unittest.cc (right): > ...
6 years, 3 months ago (2014-09-18 18:07:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/537943003/240001
6 years, 3 months ago (2014-09-18 18:08:30 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:240001) as fa8ce90188b0fb2e87f3976a9157f9f559a7b302
6 years, 3 months ago (2014-09-18 19:10:24 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 19:11:01 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8eff0dbb847db5a65dbc6c89466e6c72ec9f11a8
Cr-Commit-Position: refs/heads/master@{#295515}

Powered by Google App Engine
This is Rietveld 408576698