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

Issue 732503005: cc: Unflake and re-enable the new pinch zoom unit tests. (Closed)

Created:
6 years, 1 month ago by danakj
Modified:
6 years, 1 month ago
Reviewers:
vmpstr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Unflake and re-enable the new pinch zoom unit tests. This fixes the LayerTreeHostTestCrispUpAfterPinchEnds and LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles unit tests to not be flaky, by figuring out all the race conditions taking place and ensuring each one passes before continuing. R=enne, vmpstr BUG=433208 Committed: https://crrev.com/c209e26d344bd88a276d1dc656b945e0b3bcd2c4 Cr-Commit-Position: refs/heads/master@{#304450}

Patch Set 1 #

Total comments: 1

Patch Set 2 : flakypinch: fix #

Total comments: 1

Patch Set 3 : flakypinch: . #

Patch Set 4 : flakypinch: rebase #

Patch Set 5 : flakypinch: removetodo #

Patch Set 6 : flakypinch: comment #

Patch Set 7 : flakypinch: nowill #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -33 lines) Patch
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 11 chunks +63 lines, -33 lines 3 comments Download

Messages

Total messages: 13 (1 generated)
danakj
6 years, 1 month ago (2014-11-14 21:14:52 UTC) #1
danakj
https://codereview.chromium.org/732503005/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (left): https://codereview.chromium.org/732503005/diff/1/cc/trees/layer_tree_host_unittest.cc#oldcode5483 cc/trees/layer_tree_host_unittest.cc:5483: // This frame will not have any damage, since ...
6 years, 1 month ago (2014-11-14 21:17:32 UTC) #2
vmpstr
https://codereview.chromium.org/732503005/diff/20001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/732503005/diff/20001/cc/trees/layer_tree_host_unittest.cc#newcode5551 cc/trees/layer_tree_host_unittest.cc:5551: // On frame 3, we will have a low ...
6 years, 1 month ago (2014-11-14 21:29:49 UTC) #3
danakj
PTAL
6 years, 1 month ago (2014-11-14 21:36:20 UTC) #4
danakj
Addressed some more flaky that I found. PTAL
6 years, 1 month ago (2014-11-17 17:06:01 UTC) #5
vmpstr
lgtm
6 years, 1 month ago (2014-11-17 18:40:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/732503005/120001
6 years, 1 month ago (2014-11-17 18:41:15 UTC) #8
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-11-17 19:21:20 UTC) #9
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/c209e26d344bd88a276d1dc656b945e0b3bcd2c4 Cr-Commit-Position: refs/heads/master@{#304450}
6 years, 1 month ago (2014-11-17 19:21:56 UTC) #10
enne (OOO)
https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_host_unittest.cc#newcode5693 cc/trees/layer_tree_host_unittest.cc:5693: // We may get another draw if we activate ...
6 years, 1 month ago (2014-11-17 19:25:13 UTC) #11
danakj
https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_host_unittest.cc#newcode5693 cc/trees/layer_tree_host_unittest.cc:5693: // We may get another draw if we activate ...
6 years, 1 month ago (2014-11-17 19:28:36 UTC) #12
enne (OOO)
6 years, 1 month ago (2014-11-17 20:37:51 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_hos...
File cc/trees/layer_tree_host_unittest.cc (right):

https://codereview.chromium.org/732503005/diff/120001/cc/trees/layer_tree_hos...
cc/trees/layer_tree_host_unittest.cc:5693: // We may get another draw if we
activate due to the pinch (eg LCD text
On 2014/11/17 19:28:36, danakj wrote:
> On 2014/11/17 19:25:13, enne wrote:
> > Weird.  Could you just start without LCD text enabled and have no extra
draws?
> 
> > It seems like we should be able to control this.
> 
> In the LCD patch, the layer gets init with LCD true, and then goes to false
when
> a scale is used. I could force LCD off at the start of this test, either by
> putting a scale != 1, or by adding something to FakePictureLayer. Think it is
> worth doing?

I think it'd be worth doing (maybe with opacity != 1?) to make the test more
predictable.  Then if anybody accidentally adds an additional draw after pinch,
this test would catch it, rather than silently being robust to arbitrary
flakiness?

Powered by Google App Engine
This is Rietveld 408576698