[webkit-changes] [WebKit/WebKit] 563893: [CoordinatedGraphics] Initialize WebCore::DisplayU...
Žan Doberšek
noreply at github.com
Sat Mar 4 13:11:19 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 563893ba617934cdf2147bb814a0c2e40030f413
https://github.com/WebKit/WebKit/commit/563893ba617934cdf2147bb814a0c2e40030f413
Author: Žan Doberšek <zdobersek at igalia.com>
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 at 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
More information about the webkit-changes
mailing list