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

Issue 2800633003: Test that main thread frames cease to fire during composited animation

Created:
3 years, 8 months ago by alancutter (OOO until 2018)
Modified:
3 years, 8 months ago
Reviewers:
sunnyps, enne (OOO)
CC:
Aaron Boodman, abarth-chromium, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, esprehn, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Test that main thread frames cease to fire during composited animation This change adds a WebKitBrowserTest that runs a composited transform animation and verifies that main thread frames don't execute during the animation. BUG=704763 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Patch Set 2 : 3frames #

Patch Set 3 : removestacktrace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
M cc/ipc/cc_param_traits_macros.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/compositor_frame_metadata.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 4 chunks +5 lines, -0 lines 0 comments Download
M content/browser/webkit_browsertest.cc View 1 2 chunks +15 lines, -0 lines 0 comments Download
A content/test/data/transform-animation.html View 1 chunk +11 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (10 generated)
alancutter (OOO until 2018)
Please let me know if this test isn't going about this in the right way. ...
3 years, 8 months ago (2017-04-06 09:48:11 UTC) #6
sunnyps
I like the idea of testing this. However, I don't think we want a new ...
3 years, 8 months ago (2017-04-11 23:35:32 UTC) #12
enne (OOO)
I'm not super keen on browser tests. Can this be a webkit unit test, maybe ...
3 years, 8 months ago (2017-04-12 17:22:36 UTC) #13
alancutter (OOO until 2018)
On 2017/04/12 at 17:22:36, enne wrote: > I'm not super keen on browser tests. > ...
3 years, 8 months ago (2017-04-13 01:46:32 UTC) #14
enne (OOO)
One other suggestion might be to use tracing to check the number of begin frames? ...
3 years, 8 months ago (2017-04-13 18:26:42 UTC) #15
sunnyps
On 2017/04/13 18:26:42, enne wrote: > One other suggestion might be to use tracing to ...
3 years, 8 months ago (2017-04-13 21:17:31 UTC) #16
alancutter (OOO until 2018)
3 years, 8 months ago (2017-04-19 00:23:20 UTC) #17
On 2017/04/13 at 18:26:42, enne wrote:
> One other suggestion might be to use tracing to check the number of begin
frames? There is a RenderWidget::willBeginCompositorFrame trace event.  You
could do something like what TracingbrowserTest does to see how many begin
frames happened.  That'd require less plumbing.
> 
> sunnyps: what do you think of that?

This is an excellent idea, thank you!

Powered by Google App Engine
This is Rietveld 408576698