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

Issue 2155123003: cc: Fix use-after-frees for LayerTreeHostAnimationTest. (Closed)

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

Description

cc: Fix use-after-frees for LayerTreeHostAnimationTest. This fixes the LayerTreeHostAnimationTestAddAnimationAfterAnimating test directly by only doing the animations check a single time. While trying to understand the crash (I still don't), I uncovered some maybe questionable things in LayerTreeTest, so I tried to clean that up a bit: - Do not go through layer_tree_host() from the compositor thread to get the compositor thread task runner. Instead store it at test startup on the main thread. - Stop allowing the task runner provider to be null in tests, just don't allow tests to call into layer_tree_host() after the test has stopped. R=enne, vmpstr BUG=629167 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/833b2e5026669ee6c7167cdff371452ab47cd2dc Cr-Commit-Position: refs/heads/master@{#406176}

Patch Set 1 #

Total comments: 4

Patch Set 2 : test-task-runner-gone: todo #

Patch Set 3 : test-task-runner-gone: =nullptr #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -52 lines) Patch
M cc/test/layer_tree_test.h View 2 chunks +2 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 6 chunks +39 lines, -41 lines 2 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M cc/trees/task_runner_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
danakj
4 years, 5 months ago (2016-07-18 23:00:44 UTC) #3
vmpstr
https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc#newcode927 cc/test/layer_tree_test.cc:927: // do this for us (*ahem* MSVC) since it ...
4 years, 5 months ago (2016-07-18 23:26:13 UTC) #5
vmpstr
https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc#newcode728 cc/test/layer_tree_test.cc:728: layer_tree_host_->task_runner_provider()->MainThreadTaskRunner(); Also, this is probably a minor point, but ...
4 years, 5 months ago (2016-07-18 23:57:27 UTC) #6
danakj
PTAL https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/2155123003/diff/1/cc/test/layer_tree_test.cc#newcode728 cc/test/layer_tree_test.cc:728: layer_tree_host_->task_runner_provider()->MainThreadTaskRunner(); On 2016/07/18 23:57:26, vmpstr wrote: > Also, ...
4 years, 5 months ago (2016-07-19 00:03:28 UTC) #7
danakj
oops didn't upload. now it did.
4 years, 5 months ago (2016-07-19 00:04:38 UTC) #10
vmpstr
lgtm with a question https://codereview.chromium.org/2155123003/diff/60001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (left): https://codereview.chromium.org/2155123003/diff/60001/cc/test/layer_tree_test.cc#oldcode971 cc/test/layer_tree_test.cc:971: return remote_client_layer_tree_host_ This says that ...
4 years, 5 months ago (2016-07-19 00:10:50 UTC) #15
danakj
https://codereview.chromium.org/2155123003/diff/60001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (left): https://codereview.chromium.org/2155123003/diff/60001/cc/test/layer_tree_test.cc#oldcode971 cc/test/layer_tree_test.cc:971: return remote_client_layer_tree_host_ On 2016/07/19 00:10:50, vmpstr wrote: > This ...
4 years, 5 months ago (2016-07-19 00:15:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2155123003/60001
4 years, 5 months ago (2016-07-19 00:15:55 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-19 01:56:09 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 01:58:32 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/833b2e5026669ee6c7167cdff371452ab47cd2dc
Cr-Commit-Position: refs/heads/master@{#406176}

Powered by Google App Engine
This is Rietveld 408576698