Changeset 225509 in webkit
- Timestamp:
- Dec 4, 2017 5:13:27 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r225499 r225509 1 2017-12-04 Simon Fraser <simon.fraser@apple.com> 2 3 Minor DisplayRefreshMonitor-related cleanup 4 https://bugs.webkit.org/show_bug.cgi?id=179802 5 6 Reviewed by Sam Weinig. 7 8 New trace point for when the CVDisplayLink fires on its own thread. 9 10 * wtf/SystemTracing.h: 11 1 12 2017-12-04 JF Bastien <jfbastien@apple.com> 2 13 -
trunk/Source/WTF/wtf/SystemTracing.h
r224312 r225509 74 74 DisplayListRecordStart, 75 75 DisplayListRecordEnd, 76 DisplayRefreshDispatchingToMainThread, 76 77 77 78 WebKitRange = 10000, -
trunk/Source/WebCore/ChangeLog
r225507 r225509 1 2017-12-04 Simon Fraser <simon.fraser@apple.com> 2 3 Minor DisplayRefreshMonitor-related cleanup 4 https://bugs.webkit.org/show_bug.cgi?id=179802 5 6 Reviewed by Sam Weinig. 7 8 New trace point for when the CVDisplayLink fires on its own thread. 9 10 Some #pragma once, and put all the WellKnownRunLoopOrders in one place. 11 12 * inspector/agents/InspectorTimelineAgent.cpp: 13 (WebCore::InspectorTimelineAgent::internalStart): 14 * platform/cf/RunLoopObserver.h: 15 * platform/graphics/DisplayRefreshMonitor.cpp: 16 (WebCore::DisplayRefreshMonitor::displayDidRefresh): 17 * platform/graphics/ca/LayerFlushScheduler.h: 18 * platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp: 19 (WebCore::LayerFlushScheduler::LayerFlushScheduler): 20 1 21 2017-12-04 David Quesada <david_quesada@apple.com> 2 22 -
trunk/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp
r225263 r225509 68 68 69 69 #if PLATFORM(COCOA) 70 static const CFIndex frameStopRunLoopOrder = (CFIndex)RunLoopObserver::WellKnownRunLoopOrders::CoreAnimationCommit + 1;71 72 70 static CFRunLoopRef currentRunLoop() 73 71 { … … 175 173 176 174 #if PLATFORM(COCOA) 177 m_frameStartObserver = std::make_unique<RunLoopObserver>( 0, [this]() {175 m_frameStartObserver = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameBegin), [this]() { 178 176 if (!m_enabled || m_environment.scriptDebugServer().isPaused()) 179 177 return; … … 184 182 }); 185 183 186 m_frameStopObserver = std::make_unique<RunLoopObserver>( frameStopRunLoopOrder, [this]() {184 m_frameStopObserver = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameEnd), [this]() { 187 185 if (!m_enabled || m_environment.scriptDebugServer().isPaused()) 188 186 return; -
trunk/Source/WebCore/platform/cf/RunLoopObserver.h
r218615 r225509 24 24 */ 25 25 26 #ifndef RunLoopObserver_h 27 #define RunLoopObserver_h 26 #pragma once 28 27 29 28 #include <CoreFoundation/CoreFoundation.h> … … 52 51 53 52 enum class WellKnownRunLoopOrders : CFIndex { 54 CoreAnimationCommit = 2000000 53 CoreAnimationCommit = 2000000, 54 LayerFlush = CoreAnimationCommit - 1, 55 ActivityStateChange = CoreAnimationCommit - 2, 56 InspectorFrameBegin = 0, 57 InspectorFrameEnd = CoreAnimationCommit + 1 55 58 }; 56 59 … … 68 71 } // namespace WebCore 69 72 70 #endif // RunLoopObserver_h -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp
r224797 r225509 117 117 { 118 118 LockHolder lock(m_mutex); 119 m_previousFrameDone = true;119 setIsPreviousFrameDone(true); 120 120 } 121 121 -
trunk/Source/WebCore/platform/graphics/ca/LayerFlushScheduler.h
r172862 r225509 24 24 */ 25 25 26 #ifndef LayerFlushScheduler_h 27 #define LayerFlushScheduler_h 26 #pragma once 28 27 29 28 #include "LayerFlushSchedulerClient.h" … … 62 61 } // namespace WebCore 63 62 64 #endif // LayerFlushScheduler_h -
trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp
r223728 r225509 37 37 namespace WebCore { 38 38 39 static const CFIndex layerFlushRunLoopOrder = (CFIndex)RunLoopObserver::WellKnownRunLoopOrders::CoreAnimationCommit - 1;40 41 39 static CFRunLoopRef currentRunLoop() 42 40 { … … 59 57 ASSERT_ARG(client, client); 60 58 61 m_runLoopObserver = std::make_unique<RunLoopObserver>( layerFlushRunLoopOrder, [this]() {59 m_runLoopObserver = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::LayerFlush), [this]() { 62 60 if (this->isSuspended()) 63 61 return; -
trunk/Source/WebKit/ChangeLog
r225508 r225509 1 2017-12-04 Simon Fraser <simon.fraser@apple.com> 2 3 Minor DisplayRefreshMonitor-related cleanup 4 https://bugs.webkit.org/show_bug.cgi?id=179802 5 6 Reviewed by Sam Weinig. 7 8 Use RunLoopObserver::WellKnownRunLoopOrders. We want to fire before layer flushing. 9 10 * UIProcess/WebPageProxy.cpp: 11 (WebKit::m_configurationPreferenceValues): 12 1 13 2017-12-04 Brent Fulgham <bfulgham@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r225438 r225509 409 409 410 410 #if PLATFORM(COCOA) 411 const CFIndex activityStateChangeRunLoopOrder = (CFIndex)RunLoopObserver::WellKnownRunLoopOrders::CoreAnimationCommit - 1; 412 m_activityStateChangeDispatcher = std::make_unique<RunLoopObserver>(activityStateChangeRunLoopOrder, [this] { 411 m_activityStateChangeDispatcher = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::ActivityStateChange), [this] { 413 412 this->dispatchActivityStateChange(); 414 413 }); -
trunk/Tools/ChangeLog
r225507 r225509 1 2017-12-04 Simon Fraser <simon.fraser@apple.com> 2 3 Minor DisplayRefreshMonitor-related cleanup 4 https://bugs.webkit.org/show_bug.cgi?id=179802 5 6 Reviewed by Sam Weinig. 7 8 New trace point for when the CVDisplayLink fires on its own thread. 9 10 * Tracing/SystemTracePoints.plist: 11 1 12 2017-12-04 David Quesada <david_quesada@apple.com> 2 13 -
trunk/Tools/Tracing/SystemTracePoints.plist
r224312 r225509 197 197 <dict> 198 198 <key>Name</key> 199 <string>Display Refresh Dispatch to main thread</string> 200 <key>Type</key> 201 <string>Impulse</string> 202 <key>Component</key> 203 <string>47</string> 204 <key>Code</key> 205 <string>5026</string> 206 </dict> 207 <dict> 208 <key>Name</key> 199 209 <string>Paint WebHTMLView</string> 200 210 <key>Type</key>
Note: See TracChangeset
for help on using the changeset viewer.