[webkit-changes] [WebKit/WebKit] 09e47d: Cherry-pick 285597 at main (7f511c9ff686). https://bu...
Adrian Perez
noreply at github.com
Fri Jan 10 08:00:16 PST 2025
Branch: refs/heads/webkitglib/2.46
Home: https://github.com/WebKit/WebKit
Commit: 09e47d7185066c340ef0d5b9106776385e71dcae
https://github.com/WebKit/WebKit/commit/09e47d7185066c340ef0d5b9106776385e71dcae
Author: Jean-Yves Avenard <jya at apple.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M Source/WTF/wtf/MediaTime.cpp
M Source/WTF/wtf/MediaTime.h
M Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp
Log Message:
-----------
Cherry-pick 285597 at main (7f511c9ff686). https://bugs.webkit.org/show_bug.cgi?id=281734
Add MediaTime::toMicroseconds() and MediaTime::createWithSeconds()
https://bugs.webkit.org/show_bug.cgi?id=281734
rdar://138171274
Reviewed by Youenn Fablet.
Fly-by: bypass calculation of GCD and LCM for the most common used case: operations of MediaTime where the time scales are equal.
toMicroseconds is made to reduce the chance of overflow when calculating value * 1000000 / scale.
API tests added.
* Source/WTF/wtf/MediaTime.cpp:
(WTF::greatestCommonDivisor):
(WTF::leastCommonMultiple):
(WTF::MediaTime::toMicroseconds const):
(WTF::MediaTime::operator+ const):
(WTF::MediaTime::operator- const):
* Source/WTF/wtf/MediaTime.h:
* Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp:
(TestWebKitAPI::TEST(WTF, MediaTime)):
(TestWebKitAPI::TEST(WTF, MediaTimeInExpected)):
Canonical link: https://commits.webkit.org/285597@main
Canonical link: https://commits.webkit.org/282416.381@webkitglib/2.46
Commit: 579e46e3f4bc6c948051390a7e397b2a2b1e5737
https://github.com/WebKit/WebKit/commit/579e46e3f4bc6c948051390a7e397b2a2b1e5737
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M Source/WebCore/css/DOMCSSPaintWorklet.cpp
Log Message:
-----------
Unreviewed non-unified build fix
* Source/WebCore/css/DOMCSSPaintWorklet.cpp: Include DocumentInlines.h
instead of Document.h
Canonical link: https://commits.webkit.org/282416.382@webkitglib/2.46
Compare: https://github.com/WebKit/WebKit/compare/b1ba0d92a5a6...579e46e3f4bc
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list