Changeset 243360 in webkit
- Timestamp:
- Mar 21, 2019, 9:22:05 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r243357 r243360 1 2019-03-21 Simon Fraser <simon.fraser@apple.com> 2 3 Clean up some TiledCoreAnimationDrawingArea members 4 https://bugs.webkit.org/show_bug.cgi?id=196124 5 6 Reviewed by Tim Horton. 7 8 The giant m_transform was unused. 9 10 Group the bools etc. 11 12 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: 13 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: 14 (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea): 15 (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): 16 1 17 2019-03-21 Brady Eidson <beidson@apple.com> 2 18 -
trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h
r240963 r243360 137 137 void layerFlushThrottlingTimerFired(); 138 138 139 bool m_layerTreeStateIsFrozen;140 141 139 std::unique_ptr<LayerHostingContext> m_layerHostingContext; 142 140 … … 144 142 RetainPtr<CALayer> m_rootLayer; 145 143 RetainPtr<CALayer> m_debugInfoLayer; 146 147 144 RetainPtr<CALayer> m_pendingRootLayer; 148 149 bool m_isPaintingSuspended;150 145 151 146 Optional<WebCore::FloatRect> m_viewExposedRect; 152 147 Optional<WebCore::FloatRect> m_scrolledViewExposedRect; 153 148 149 WebCore::IntSize m_lastViewSizeForScaleToFit; 150 WebCore::IntSize m_lastDocumentSizeForScaleToFit; 151 154 152 WebCore::IntSize m_lastSentIntrinsicContentSize; 155 bool m_inUpdateGeometry;156 153 157 double m_transientZoomScale ;154 double m_transientZoomScale { 1 }; 158 155 WebCore::FloatPoint m_transientZoomOrigin; 159 156 160 WebCore::T ransformationMatrix m_transform;157 WebCore::Timer m_layerFlushThrottlingTimer; 161 158 162 159 RunLoop::Timer<TiledCoreAnimationDrawingArea> m_sendDidUpdateActivityStateTimer; … … 166 163 RefPtr<WebCore::GraphicsLayer> m_viewOverlayRootLayer; 167 164 168 bool m_shouldScaleViewToFitDocument { false };169 bool m_isScalingViewToFitDocument { false };170 WebCore::IntSize m_lastViewSizeForScaleToFit;171 WebCore::IntSize m_lastDocumentSizeForScaleToFit;172 173 165 OptionSet<WebCore::LayoutMilestone> m_pendingNewlyReachedLayoutMilestones; 174 166 Vector<CallbackID> m_pendingCallbackIDs; … … 176 168 std::unique_ptr<WebCore::RunLoopObserver> m_layerFlushRunLoopObserver; 177 169 170 bool m_isPaintingSuspended { false }; 171 bool m_inUpdateGeometry { false }; 172 bool m_layerTreeStateIsFrozen { false }; 173 bool m_shouldScaleViewToFitDocument { false }; 174 bool m_isScalingViewToFitDocument { false }; 178 175 bool m_isThrottlingLayerFlushes { false }; 179 176 bool m_isLayerFlushThrottlingTemporarilyDisabledForInteraction { false }; 180 177 bool m_needsSendEnterAcceleratedCompositingMode { true }; 181 182 WebCore::Timer m_layerFlushThrottlingTimer;183 178 }; 184 179 -
trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
r242714 r243360 76 76 TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebPage& webPage, const WebPageCreationParameters& parameters) 77 77 : DrawingArea(DrawingAreaTypeTiledCoreAnimation, parameters.drawingAreaIdentifier, webPage) 78 , m_layerTreeStateIsFrozen(false) 78 , m_layerFlushThrottlingTimer(*this, &TiledCoreAnimationDrawingArea::layerFlushThrottlingTimerFired) 79 , m_sendDidUpdateActivityStateTimer(RunLoop::main(), this, &TiledCoreAnimationDrawingArea::didUpdateActivityStateTimerFired) 79 80 , m_isPaintingSuspended(!(parameters.activityState & ActivityState::IsVisible)) 80 , m_transientZoomScale(1)81 , m_sendDidUpdateActivityStateTimer(RunLoop::main(), this, &TiledCoreAnimationDrawingArea::didUpdateActivityStateTimerFired)82 , m_viewOverlayRootLayer(nullptr)83 , m_layerFlushThrottlingTimer(*this, &TiledCoreAnimationDrawingArea::layerFlushThrottlingTimerFired)84 81 { 85 82 m_webPage.corePage()->settings().setForceCompositingMode(true); … … 699 696 bool hadRootLayer = !!m_rootLayer; 700 697 m_rootLayer = layer; 701 [m_rootLayer setSublayerTransform:m_transform];702 698 703 699 updateRootLayers();
Note:
See TracChangeset
for help on using the changeset viewer.