Changeset 162443 in webkit
- Timestamp:
- Jan 21, 2014, 8:40:38 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderLayerCompositor.cpp (modified) (6 diffs)
-
rendering/RenderLayerCompositor.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r162442 r162443 1 2014-01-21 Antti Koivisto <antti@apple.com> 2 3 Delay initial layer flush during loading on all platforms 4 https://bugs.webkit.org/show_bug.cgi?id=127347 5 6 Reviewed by Andreas Kling. 7 8 To reduce unnecessary repaints enable the same behaviour as iOS already has. 9 10 * rendering/RenderLayerCompositor.cpp: 11 (WebCore::RenderLayerCompositor::RenderLayerCompositor): 12 13 Set the initial state of m_layerFlushThrottlingEnabled correctly. 14 15 (WebCore::RenderLayerCompositor::scheduleLayerFlush): 16 (WebCore::RenderLayerCompositor::startInitialLayerFlushTimerIfNeeded): 17 * rendering/RenderLayerCompositor.h: 18 19 Enable initial layer flush delay on all platforms. 20 1 21 2014-01-21 Mihai Tica <mitica@adobe.com> 2 22 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r162117 r162443 46 46 #include "NodeList.h" 47 47 #include "Page.h" 48 #include "ProgressTracker.h" 48 49 #include "RenderEmbeddedObject.h" 49 50 #include "RenderFlowThread.h" … … 99 100 static const double throttledLayerFlushDelay = 1.5; 100 101 #else 102 static const double throttledLayerFlushInitialDelay = .5; 101 103 static const double throttledLayerFlushDelay = .5; 102 104 #endif … … 249 251 , m_rootLayerAttachment(RootLayerUnattached) 250 252 , m_layerFlushTimer(this, &RenderLayerCompositor::layerFlushTimerFired) 251 , m_layerFlushThrottlingEnabled( false)253 , m_layerFlushThrottlingEnabled(page() && page()->progress().isMainLoadProgressing()) 252 254 , m_layerFlushThrottlingTemporarilyDisabledForInteraction(false) 253 255 , m_hasPendingLayerFlush(false) … … 375 377 ASSERT(!m_flushingLayers); 376 378 377 #if PLATFORM(IOS)378 379 if (canThrottle) 379 380 startInitialLayerFlushTimerIfNeeded(); 380 #endif381 381 382 382 if (canThrottle && isThrottlingLayerFlushes()) { … … 3678 3678 } 3679 3679 3680 #if PLATFORM(IOS)3681 3680 void RenderLayerCompositor::startInitialLayerFlushTimerIfNeeded() 3682 3681 { … … 3687 3686 m_layerFlushTimer.startOneShot(throttledLayerFlushInitialDelay); 3688 3687 } 3689 #endif3690 3688 3691 3689 void RenderLayerCompositor::layerFlushTimerFired(Timer<RenderLayerCompositor>&) -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r162139 r162443 407 407 ChromeClient* chromeClient() const; 408 408 409 void startInitialLayerFlushTimerIfNeeded();410 409 #endif 411 410 … … 431 430 void scheduleLayerFlushNow(); 432 431 bool isThrottlingLayerFlushes() const; 432 void startInitialLayerFlushTimerIfNeeded(); 433 433 void startLayerFlushTimerIfNeeded(); 434 434 void layerFlushTimerFired(Timer<RenderLayerCompositor>&);
Note:
See TracChangeset
for help on using the changeset viewer.