Bug 217911 - [MotionMark] Add state change items to represent changes to stroke and fill state
Summary: [MotionMark] Add state change items to represent changes to stroke and fill s...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-19 10:49 PDT by Wenson Hsieh
Modified: 2020-10-19 17:47 PDT (History)
4 users (show)

See Also:


Attachments
Patch (19.18 KB, patch)
2020-10-19 14:54 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2020-10-19 10:49:03 PDT
SSIA
Comment 1 Wenson Hsieh 2020-10-19 14:54:51 PDT
Created attachment 411802 [details]
Patch
Comment 2 Simon Fraser (smfr) 2020-10-19 15:44:32 PDT
Comment on attachment 411802 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=411802&action=review

> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:409
> +    Color m_color;
> +    float m_thickness { 0 };
> +    bool m_hasColor { false };
> +    bool m_hasThickness { false };

Are you doing it this way, rather than Optional<>, for better packing?
Comment 3 Wenson Hsieh 2020-10-19 15:45:14 PDT
(In reply to Simon Fraser (smfr) from comment #2)
> Comment on attachment 411802 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=411802&action=review
> 
> > Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:409
> > +    Color m_color;
> > +    float m_thickness { 0 };
> > +    bool m_hasColor { false };
> > +    bool m_hasThickness { false };
> 
> Are you doing it this way, rather than Optional<>, for better packing?

Yep! (as explained in the ChangeLog)
Comment 4 Wenson Hsieh 2020-10-19 17:30:24 PDT
Comment on attachment 411802 [details]
Patch

Thanks for the review!
Comment 5 EWS 2020-10-19 17:46:07 PDT
Committed r268704: <https://trac.webkit.org/changeset/268704>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 411802 [details].
Comment 6 Radar WebKit Bug Importer 2020-10-19 17:47:18 PDT
<rdar://problem/70464319>