Changeset 277050 in webkit


Ignore:
Timestamp:
May 5, 2021, 4:06:21 PM (4 years ago)
Author:
Cameron McCormack
Message:

Remove unused DisplayList::Recorder::ContextState::wasUsedForDrawing
https://bugs.webkit.org/show_bug.cgi?id=225381

Reviewed by Simon Fraser.

  • platform/graphics/displaylists/DisplayListRecorder.cpp:

(WebCore::DisplayList::Recorder::canAppendItemOfType):
(WebCore::DisplayList::Recorder::restore):

  • platform/graphics/displaylists/DisplayListRecorder.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r277047 r277050  
     12021-05-05  Cameron McCormack  <heycam@apple.com>
     2
     3        Remove unused DisplayList::Recorder::ContextState::wasUsedForDrawing
     4        https://bugs.webkit.org/show_bug.cgi?id=225381
     5
     6        Reviewed by Simon Fraser.
     7
     8        * platform/graphics/displaylists/DisplayListRecorder.cpp:
     9        (WebCore::DisplayList::Recorder::canAppendItemOfType):
     10        (WebCore::DisplayList::Recorder::restore):
     11        * platform/graphics/displaylists/DisplayListRecorder.h:
     12
    1132021-05-05  Cameron McCormack  <heycam@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp

    r277047 r277050  
    140140            currentState().lastDrawingState = stateChanges.m_state;
    141141        }
    142         currentState().wasUsedForDrawing = true;
    143142    }
    144143
     
    228227        return;
    229228
    230     bool stateUsedForDrawing = currentState().wasUsedForDrawing;
    231 
    232229    m_stateStack.removeLast();
    233     // Have to avoid eliding nested Save/Restore when a descendant state contains drawing items.
    234     currentState().wasUsedForDrawing |= stateUsedForDrawing;
    235 
    236230    append<Restore>();
    237231}
  • trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h

    r277047 r277050  
    193193        GraphicsContextStateChange stateChange;
    194194        GraphicsContextState lastDrawingState;
    195         bool wasUsedForDrawing { false };
    196195       
    197196        ContextState(const GraphicsContextState& state, const AffineTransform& transform, const FloatRect& clip)
Note: See TracChangeset for help on using the changeset viewer.