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

Issue 307653005: Update source frame number even when commits abort (Closed)

Created:
6 years, 6 months ago by enne (OOO)
Modified:
6 years, 6 months ago
Reviewers:
danakj, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Update source frame number even when commits abort If a commit aborts, then PictureLayer::update_source_frame_number_ will be stale since only a finished commit would update the LTH::source_frame_number_. This could lead to an issue where a commit aborts and then on the next frame a layer's size is updated *and* it is set to not draw. This causes it to skip being updated (meaning the pile size is not updated) but the layer bounds have changed and trips an assert in PushPropertiesTo that tries to make sure that the pile and layer bounds are the same when a layer has been updated that frame. The fix here is to update the source frame number even for aborted commits. This causes the PushPropertiesTo assert to properly be ignored. BUG=375675 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274540

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M cc/layers/texture_layer_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 chunks +1 line, -2 lines 1 comment Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 5 chunks +11 lines, -4 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
enne (OOO)
I'm not sure how to test this properly. I could test that the source frame ...
6 years, 6 months ago (2014-05-29 00:14:54 UTC) #1
danakj
Does this break every unit test that does switch(source frame number)? On May 29, 2014 ...
6 years, 6 months ago (2014-05-29 07:34:08 UTC) #2
danakj
On May 29, 2014 2:14 AM, <enne@chromium.org> wrote: > > Reviewers: danakj (OOO_back_june_6), vmpstr, > ...
6 years, 6 months ago (2014-05-29 07:36:07 UTC) #3
enne (OOO)
Moved the increment to DidCommit, which is called regardless of aborting. https://codereview.chromium.org/307653005/diff/20001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): ...
6 years, 6 months ago (2014-05-29 19:29:57 UTC) #4
enne (OOO)
On 2014/05/29 07:36:07, danakj (OOO_back_june_6) wrote: > > I'm not sure how to test this ...
6 years, 6 months ago (2014-05-29 19:33:34 UTC) #5
enne (OOO)
Ping?
6 years, 6 months ago (2014-06-03 00:35:51 UTC) #6
danakj
LGTM
6 years, 6 months ago (2014-06-03 10:28:50 UTC) #7
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 6 months ago (2014-06-03 10:28:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/307653005/20001
6 years, 6 months ago (2014-06-03 10:29:55 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 13:53:26 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 15:25:53 UTC) #11
Message was sent while issue was closed.
Change committed as 274540

Powered by Google App Engine
This is Rietveld 408576698