From b362e94f35533706008eeaa3c826c8c4c30d890d Mon Sep 17 00:00:00 2001 From: Xida Chen Date: Sat, 24 Apr 2021 09:14:50 +0000 Subject: [PATCH] Bug 1706464 [wpt PR 28605] - Off-thread CSS paint: handle no-op animation, a=testonly Automatic update from web-platform-tests Off-thread CSS paint: handle no-op animation In a previous CL here: https://chromium-review.googlesource.com/c/chromium/src/+/2795243 We handled a no-op background-color animation by keep it running on the compositor thread. This is okay because it is a no-op animation. This CL follows the same approach as the background-color animation case. In particular, when it is a custom property animated by CSS paint worklet, and this custom property animation is a no-op one, then we keep it running on the compositor thread. Bug: 1193162 Change-Id: I3f2093092053ad9c9363a64d6d46df039e9bddf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2841783 Reviewed-by: Kevin Ellis Commit-Queue: Xida Chen Cr-Commit-Position: refs/heads/master@{#874704} -- wpt-commits: b47b8a1f933a9ec2b62f1608886155f911431111 wpt-pr: 28605 --- .../css-paint-api/no-op-animation-ref.html | 15 ++++++ .../css-paint-api/no-op-animation.https.html | 49 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 testing/web-platform/tests/css/css-paint-api/no-op-animation-ref.html create mode 100644 testing/web-platform/tests/css/css-paint-api/no-op-animation.https.html diff --git a/testing/web-platform/tests/css/css-paint-api/no-op-animation-ref.html b/testing/web-platform/tests/css/css-paint-api/no-op-animation-ref.html new file mode 100644 index 000000000000..a6eca8329b97 --- /dev/null +++ b/testing/web-platform/tests/css/css-paint-api/no-op-animation-ref.html @@ -0,0 +1,15 @@ + + +
=
+ + + + diff --git a/testing/web-platform/tests/css/css-paint-api/no-op-animation.https.html b/testing/web-platform/tests/css/css-paint-api/no-op-animation.https.html new file mode 100644 index 000000000000..b1440ba3c1f7 --- /dev/null +++ b/testing/web-platform/tests/css/css-paint-api/no-op-animation.https.html @@ -0,0 +1,49 @@ + + + + + + + +
=
+ + + + + +