Title: [275660] trunk/Source/WebCore
Revision
275660
Author
[email protected]
Date
2021-04-08 10:03:53 -0700 (Thu, 08 Apr 2021)

Log Message

Compact GraphicsContextState
https://bugs.webkit.org/show_bug.cgi?id=224317

Reviewed by Jon Lee.

Shrink GraphicsContextState from 192 to 184 bytes. This saves space in all the
GraphicsContext state stacks, and on pages with filters and canvas there can be
many of these.

* platform/graphics/GraphicsContext.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (275659 => 275660)


--- trunk/Source/WebCore/ChangeLog	2021-04-08 16:14:46 UTC (rev 275659)
+++ trunk/Source/WebCore/ChangeLog	2021-04-08 17:03:53 UTC (rev 275660)
@@ -1,3 +1,16 @@
+2021-04-08  Simon Fraser  <[email protected]>
+
+        Compact GraphicsContextState
+        https://bugs.webkit.org/show_bug.cgi?id=224317
+
+        Reviewed by Jon Lee.
+
+        Shrink GraphicsContextState from 192 to 184 bytes. This saves space in all the
+        GraphicsContext state stacks, and on pages with filters and canvas there can be
+        many of these.
+
+        * platform/graphics/GraphicsContext.h:
+
 2021-04-08  Sihui Liu  <[email protected]>
 
         Remove logging for investigating http/tests/IndexedDB/storage-limit-1.html failure

Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (275659 => 275660)


--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2021-04-08 16:14:46 UTC (rev 275659)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2021-04-08 17:03:53 UTC (rev 275660)
@@ -201,11 +201,6 @@
 
     FloatSize shadowOffset;
 
-    float strokeThickness { 0 };
-    float shadowBlur { 0 };
-
-    TextDrawingModeFlags textDrawingMode { TextDrawingMode::Fill };
-
     Color strokeColor { Color::black };
     Color fillColor { Color::black };
     Color shadowColor;
@@ -212,11 +207,15 @@
 
     AffineTransform strokeGradientSpaceTransform;
     AffineTransform fillGradientSpaceTransform;
-    
+
+    float strokeThickness { 0 };
+    float shadowBlur { 0 };
+    float alpha { 1 };
+
     StrokeStyle strokeStyle { SolidStroke };
     WindRule fillRule { WindRule::NonZero };
 
-    float alpha { 1 };
+    TextDrawingModeFlags textDrawingMode { TextDrawingMode::Fill };
     CompositeOperator compositeOperator { CompositeOperator::SourceOver };
     BlendMode blendMode { BlendMode::Normal };
     InterpolationQuality imageInterpolationQuality { InterpolationQuality::Default };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to