Changeset 277050 in webkit
- Timestamp:
- May 5, 2021, 4:06:21 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r277047 r277050 1 2021-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 1 13 2021-05-05 Cameron McCormack <heycam@apple.com> 2 14 -
trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp
r277047 r277050 140 140 currentState().lastDrawingState = stateChanges.m_state; 141 141 } 142 currentState().wasUsedForDrawing = true;143 142 } 144 143 … … 228 227 return; 229 228 230 bool stateUsedForDrawing = currentState().wasUsedForDrawing;231 232 229 m_stateStack.removeLast(); 233 // Have to avoid eliding nested Save/Restore when a descendant state contains drawing items.234 currentState().wasUsedForDrawing |= stateUsedForDrawing;235 236 230 append<Restore>(); 237 231 } -
trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h
r277047 r277050 193 193 GraphicsContextStateChange stateChange; 194 194 GraphicsContextState lastDrawingState; 195 bool wasUsedForDrawing { false };196 195 197 196 ContextState(const GraphicsContextState& state, const AffineTransform& transform, const FloatRect& clip)
Note:
See TracChangeset
for help on using the changeset viewer.