Title: [277050] trunk/Source/WebCore
Revision
277050
Author
[email protected]
Date
2021-05-05 16:06:21 -0700 (Wed, 05 May 2021)

Log 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:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (277049 => 277050)


--- trunk/Source/WebCore/ChangeLog	2021-05-05 23:01:46 UTC (rev 277049)
+++ trunk/Source/WebCore/ChangeLog	2021-05-05 23:06:21 UTC (rev 277050)
@@ -1,5 +1,17 @@
 2021-05-05  Cameron McCormack  <[email protected]>
 
+        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:
+
+2021-05-05  Cameron McCormack  <[email protected]>
+
         Rename DisplayList::Recorder::appendDrawGraphsItemWithCachedFont.
         https://bugs.webkit.org/show_bug.cgi?id=225382
 

Modified: trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp (277049 => 277050)


--- trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp	2021-05-05 23:01:46 UTC (rev 277049)
+++ trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp	2021-05-05 23:06:21 UTC (rev 277050)
@@ -139,7 +139,6 @@
             stateChanges.m_changeFlags = { };
             currentState().lastDrawingState = stateChanges.m_state;
         }
-        currentState().wasUsedForDrawing = true;
     }
 
     return true;
@@ -227,12 +226,7 @@
     if (!m_stateStack.size())
         return;
 
-    bool stateUsedForDrawing = currentState().wasUsedForDrawing;
-
     m_stateStack.removeLast();
-    // Have to avoid eliding nested Save/Restore when a descendant state contains drawing items.
-    currentState().wasUsedForDrawing |= stateUsedForDrawing;
-
     append<Restore>();
 }
 

Modified: trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h (277049 => 277050)


--- trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h	2021-05-05 23:01:46 UTC (rev 277049)
+++ trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h	2021-05-05 23:06:21 UTC (rev 277050)
@@ -192,7 +192,6 @@
         FloatRect clipBounds;
         GraphicsContextStateChange stateChange;
         GraphicsContextState lastDrawingState;
-        bool wasUsedForDrawing { false };
         
         ContextState(const GraphicsContextState& state, const AffineTransform& transform, const FloatRect& clip)
             : ctm(transform)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to