WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205001
Add encoding and decoding support for more DisplayListItems
https://bugs.webkit.org/show_bug.cgi?id=205001
Summary
Add encoding and decoding support for more DisplayListItems
Wenson Hsieh
Reported
2019-12-08 17:33:05 PST
See: DisplayListItems.h in WebCore.
Attachments
WIP
(66.33 KB, patch)
2019-12-08 20:53 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
v2 (w/ more drawing items supported)
(78.40 KB, patch)
2019-12-08 22:02 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2019-12-08 20:53:59 PST
Created
attachment 385132
[details]
WIP
Tim Horton
Comment 2
2019-12-08 21:00:43 PST
❤️
Tim Horton
Comment 3
2019-12-08 21:08:56 PST
Comment on
attachment 385132
[details]
WIP View in context:
https://bugs.webkit.org/attachment.cgi?id=385132&action=review
> Source/WebCore/platform/graphics/GraphicsTypes.h:199 > + WebCore::LineCap::ButtCap,
At some point we should enum class these (and drop the suffixes). I'd mostly been doing that as I went along, but I can see why you might not want to :D
> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:533 > +void SetLineCap::encode(Encoder& encoder) const
Wonder why these aren't in the State thing
> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:1233 > + encoder << m_point1 << m_point2;
I don't love multiple items on one line.
> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:1358 > + encoder << m_rect << m_style;
Ditto
> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:1845 > + encoder << m_rect;
Much better
Wenson Hsieh
Comment 4
2019-12-08 21:49:00 PST
Comment on
attachment 385132
[details]
WIP View in context:
https://bugs.webkit.org/attachment.cgi?id=385132&action=review
I’m also adding a few more image-y display list item encoder/decoders in a v2.
>> Source/WebCore/platform/graphics/GraphicsTypes.h:199 >> + WebCore::LineCap::ButtCap, > > At some point we should enum class these (and drop the suffixes). I'd mostly been doing that as I went along, but I can see why you might not want to :D
Definitely considered it! But yes, I’ll do that it a separate change (since this patch has already gotten quite large).
>> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:533 >> +void SetLineCap::encode(Encoder& encoder) const > > Wonder why these aren't in the State thing
Good question. I’ll leave it like this for now (it might be something to fix when I work on getting SetState to propagate all of its bits).
>> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:1233 >> + encoder << m_point1 << m_point2; > > I don't love multiple items on one line.
Ok! Moved to one << per line.
Tim Horton
Comment 5
2019-12-08 21:52:12 PST
(In reply to Wenson Hsieh from
comment #4
)
> Comment on
attachment 385132
[details]
> WIP > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=385132&action=review
> > I’m also adding a few more image-y display list item encoder/decoders in a > v2.
Woot
> >> Source/WebCore/platform/graphics/displaylists/DisplayListItems.h:533 > >> +void SetLineCap::encode(Encoder& encoder) const > > > > Wonder why these aren't in the State thing > > Good question. I’ll leave it like this for now (it might be something to fix > when I work on getting SetState to propagate all of its bits).
Yeah this was more of a smfr question
Wenson Hsieh
Comment 6
2019-12-08 22:02:27 PST
Created
attachment 385133
[details]
v2 (w/ more drawing items supported)
WebKit Commit Bot
Comment 7
2019-12-09 00:17:45 PST
Comment on
attachment 385133
[details]
v2 (w/ more drawing items supported) Clearing flags on attachment: 385133 Committed
r253283
: <
https://trac.webkit.org/changeset/253283
>
WebKit Commit Bot
Comment 8
2019-12-09 00:17:47 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2019-12-09 00:18:44 PST
<
rdar://problem/57742387
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug