Skip to content
Permalink
Browse files
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:


Canonical link: https://commits.webkit.org/236296@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
smfr committed Apr 8, 2021
1 parent fee6a75 commit de5699d4e07a59078cd63d2ab54138bb5fa0b63e
Showing 2 changed files with 19 additions and 7 deletions.
@@ -1,3 +1,16 @@
2021-04-08 Simon Fraser <simon.fraser@apple.com>

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 <sihui_liu@apple.com>

Remove logging for investigating http/tests/IndexedDB/storage-limit-1.html failure
@@ -201,22 +201,21 @@ struct GraphicsContextState {

FloatSize shadowOffset;

float strokeThickness { 0 };
float shadowBlur { 0 };

TextDrawingModeFlags textDrawingMode { TextDrawingMode::Fill };

Color strokeColor { Color::black };
Color fillColor { Color::black };
Color shadowColor;

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 };

0 comments on commit de5699d

Please sign in to comment.