Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ac51296daaebed5e41c728bb17eb440186a1aa7f
https://github.com/WebKit/WebKit/commit/ac51296daaebed5e41c728bb17eb440186a1aa7f
Author: Etienne Segonzac <[email protected]>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M Source/WebKit/GPUProcess/graphics/Model/ModelTypes.h
M Source/WebKit/GPUProcess/graphics/Model/USDModel.swift
M Source/WebKit/WebProcess/Model/WebModelPlayer.mm
Log Message:
-----------
WebModelPlayer animations always loop
https://bugs.webkit.org/show_bug.cgi?id=309691
<rdar://172281131>
Reviewed by Mike Wyrzykowski.
Wire the loop property and add a bit more state management for
animations.
* Source/WebKit/GPUProcess/graphics/Model/ModelTypes.h:
* Source/WebKit/GPUProcess/graphics/Model/USDModel.swift:
(USDModelLoader.loop):
(USDModelLoader.update(_:)):
Update the animation time based on the `loop` value.
(WKBridgeModelLoader.setLoop(_:)):
* Source/WebKit/WebProcess/Model/WebModelPlayer.mm:
(WebKit::WebModelPlayer::update):
Make sure we update the pause state ourselves when the animation
finishes (and we're not looping).
(WebKit::WebModelPlayer::play):
Make sure we can play the animation multiple times.
(WebKit::WebModelPlayer::setLoop):
Canonical link: https://commits.webkit.org/309162@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications