Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 563893ba617934cdf2147bb814a0c2e40030f413
https://github.com/WebKit/WebKit/commit/563893ba617934cdf2147bb814a0c2e40030f413
Author: Žan Doberšek <[email protected]>
Date: 2023-03-04 (Sat, 04 Mar 2023)
Changed paths:
M
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
M
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.cpp
M
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.h
Log Message:
-----------
[CoordinatedGraphics] Initialize WebCore::DisplayUpdate in
ThreadedDisplayRefreshMonitor
https://bugs.webkit.org/show_bug.cgi?id=253393
Unreviewed follow-up to 261124@main.
Construct the DisplayUpdate object in ThreadedCompositor based off of the
default refresh rate, and pass it on to the ThreadedDisplayRefreshMonitor
constructor where it's used to initialize the member variable, avoiding
division issues in certain cases where the object is left uninitialized but then
gets used during invalidation.
*
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::m_displayRefreshMonitor):
*
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.cpp:
(WebKit::ThreadedDisplayRefreshMonitor::ThreadedDisplayRefreshMonitor):
*
Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.h:
(WebKit::ThreadedDisplayRefreshMonitor::create):
Canonical link: https://commits.webkit.org/261228@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes