Changeset 243360 in webkit


Ignore:
Timestamp:
Mar 21, 2019, 9:22:05 PM (6 years ago)
Author:
Simon Fraser
Message:

Clean up some TiledCoreAnimationDrawingArea members
https://bugs.webkit.org/show_bug.cgi?id=196124

Reviewed by Tim Horton.

The giant m_transform was unused.

Group the bools etc.

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
(WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243357 r243360  
     12019-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
    1172019-03-21  Brady Eidson  <beidson@apple.com>
    218
  • trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h

    r240963 r243360  
    137137    void layerFlushThrottlingTimerFired();
    138138
    139     bool m_layerTreeStateIsFrozen;
    140 
    141139    std::unique_ptr<LayerHostingContext> m_layerHostingContext;
    142140
     
    144142    RetainPtr<CALayer> m_rootLayer;
    145143    RetainPtr<CALayer> m_debugInfoLayer;
    146 
    147144    RetainPtr<CALayer> m_pendingRootLayer;
    148 
    149     bool m_isPaintingSuspended;
    150145
    151146    Optional<WebCore::FloatRect> m_viewExposedRect;
    152147    Optional<WebCore::FloatRect> m_scrolledViewExposedRect;
    153148
     149    WebCore::IntSize m_lastViewSizeForScaleToFit;
     150    WebCore::IntSize m_lastDocumentSizeForScaleToFit;
     151
    154152    WebCore::IntSize m_lastSentIntrinsicContentSize;
    155     bool m_inUpdateGeometry;
    156153
    157     double m_transientZoomScale;
     154    double m_transientZoomScale { 1 };
    158155    WebCore::FloatPoint m_transientZoomOrigin;
    159156
    160     WebCore::TransformationMatrix m_transform;
     157    WebCore::Timer m_layerFlushThrottlingTimer;
    161158
    162159    RunLoop::Timer<TiledCoreAnimationDrawingArea> m_sendDidUpdateActivityStateTimer;
     
    166163    RefPtr<WebCore::GraphicsLayer> m_viewOverlayRootLayer;
    167164
    168     bool m_shouldScaleViewToFitDocument { false };
    169     bool m_isScalingViewToFitDocument { false };
    170     WebCore::IntSize m_lastViewSizeForScaleToFit;
    171     WebCore::IntSize m_lastDocumentSizeForScaleToFit;
    172 
    173165    OptionSet<WebCore::LayoutMilestone> m_pendingNewlyReachedLayoutMilestones;
    174166    Vector<CallbackID> m_pendingCallbackIDs;
     
    176168    std::unique_ptr<WebCore::RunLoopObserver> m_layerFlushRunLoopObserver;
    177169
     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 };
    178175    bool m_isThrottlingLayerFlushes { false };
    179176    bool m_isLayerFlushThrottlingTemporarilyDisabledForInteraction { false };
    180177    bool m_needsSendEnterAcceleratedCompositingMode { true };
    181 
    182     WebCore::Timer m_layerFlushThrottlingTimer;
    183178};
    184179
  • trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

    r242714 r243360  
    7676TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebPage& webPage, const WebPageCreationParameters& parameters)
    7777    : DrawingArea(DrawingAreaTypeTiledCoreAnimation, parameters.drawingAreaIdentifier, webPage)
    78     , m_layerTreeStateIsFrozen(false)
     78    , m_layerFlushThrottlingTimer(*this, &TiledCoreAnimationDrawingArea::layerFlushThrottlingTimerFired)
     79    , m_sendDidUpdateActivityStateTimer(RunLoop::main(), this, &TiledCoreAnimationDrawingArea::didUpdateActivityStateTimerFired)
    7980    , 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)
    8481{
    8582    m_webPage.corePage()->settings().setForceCompositingMode(true);
     
    699696    bool hadRootLayer = !!m_rootLayer;
    700697    m_rootLayer = layer;
    701     [m_rootLayer setSublayerTransform:m_transform];
    702698
    703699    updateRootLayers();
Note: See TracChangeset for help on using the changeset viewer.