New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 646566 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

CompositorWorker commit from previous frame clobbers later frame.

Project Member Reported by flackr@chromium.org, Sep 13 2016

Issue description

Version: 55.0.2860.0 (Developer Build) (64-bit)
OS: All

What steps will reproduce the problem?
(1) Load the attached file with --enable-blink-features=GeometryInterfaces,CompositorWorker
(2) Scroll the page

What is the expected output?
Both of the boxes should stay stuck to the top of the viewport.

What do you see instead?
The box on the right seems to lag behind the scroll position. What is happening is every time the CompositorWorker script sets a transform it is sent back to the main thread, which then commits the new transform to the CompositorWorker in the next frame. This commit happens after the CompositorWorker has applied the transform for the next frame and clobbers that value. We then run the animation frame function again but the script sees the same scroll offset and so it doesn't update the transform of the box on the right.

We should prevent the updates from previous CompositorWorker frames from clobbering later ones. We can probably do this by protecting any value that has been updated in the current frame by a CompositorWorker callback.

Please use labels and text to provide additional information.

 
test-sticky.html
1.9 KB View Download

Comment 1 by flackr@chromium.org, Sep 14 2016

Owner: flackr@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by flackr@chromium.org, Jan 27 2017

Cc: -majidvp@chromium.org flackr@chromium.org
Owner: majidvp@chromium.org
Status: WontFix (was: Assigned)
No longer relevant for AnimationWorklet where the updates are sent to CC instead of directly to main thread.

Sign in to add a comment