Bug 217911

Summary: [MotionMark] Add state change items to represent changes to stroke and fill state
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebCore Misc.Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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>