-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate serialization for WCLayerUpdateInfo. #22830
Generate serialization for WCLayerUpdateInfo. #22830
Conversation
EWS run on previous version of this PR (hash ec4b7ce) |
ec4b7ce
to
81a374e
Compare
EWS run on current version of this PR (hash 81a374e) |
EWS run on previous version of this PR (hash 81a374e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct assuming Windows build works. Thanks for doing this!
Source/WebKit/DerivedSources.make
Outdated
@@ -761,6 +761,7 @@ SERIALIZATION_DESCRIPTION_FILES = \ | |||
WebProcess/UserContent/InjectUserScriptImmediately.serialization.in \ | |||
WebProcess/WebCoreSupport/WebSpeechSynthesisVoice.serialization.in \ | |||
WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemoteProperties.serialization.in \ | |||
WebProcess/WebPage/wc/WCUpdateInfo.serialization.in \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to add this here since Apple code is not using this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you also need to update Source/WebKit/DerivedSources-input.xcfilelist
too?
Source/WebKit/CMakeLists.txt
Outdated
@@ -588,6 +588,8 @@ set(WebKit_SERIALIZATION_IN_FILES | |||
WebProcess/UserContent/InjectUserScriptImmediately.serialization.in | |||
|
|||
WebProcess/WebCoreSupport/WebSpeechSynthesisVoice.serialization.in | |||
|
|||
WebProcess/WebPage/wc/WCUpdateInfo.serialization.in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops caught this. It should just be in PlatformWin.cmake
. It is not used by other ports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually just delete this since you're appending to the serialization.in
file and its already present in the PlatformWin.cmake
file.
The WC stuff is only used by Windows at this time so I don't think you need to do this. In fact the CMake changes should be specific to Windows. |
Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in
Outdated
Show resolved
Hide resolved
81a374e
to
9094a4b
Compare
EWS run on previous version of this PR (hash 9094a4b) |
Fixed |
9094a4b
to
4b44863
Compare
Not needed as only for Windows |
Fixed |
EWS run on previous version of this PR (hash 4b44863) |
@@ -45,7 +45,7 @@ struct WCTileUpdate { | |||
WebCore::IntRect dirtyRect; | |||
}; | |||
|
|||
enum class WCLayerChange : uint32_t { | |||
enum class WCLayerChange : uint8_t { | |||
Children = 1 << 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this change and mark the serialization files definition as uint32_t
This is why compilation is failing
4b44863
to
8091a28
Compare
EWS run on previous version of this PR (hash 8091a28) |
8091a28
to
2e021af
Compare
EWS run on previous version of this PR (hash 2e021af) |
2e021af
to
0a7ec7d
Compare
EWS run on previous version of this PR (hash 0a7ec7d) |
The definition of Thanks for starting this work @nishajain61 ! |
Please let me know what are the next steps needed for this PR to land. Thanks |
I'm going to do more refactoring in https://bugs.webkit.org/show_bug.cgi?id=267968 before adopting a serializer generator. |
We're on a deadline to get rid of all legacy IPC coders, so yes, it is fairly urgent. |
I misunderstood your intension. I didn't know why you want to switch WCLayerUpdateInfo to the serializer generator. WCBackingStore is also using the lagacy decoder. I'm going to rewrite them to the modern decoder. |
Yes, WCBackingStore is also on our list of things to be fixed. Thanks for helping. |
0a7ec7d
to
faf5b01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the bots are happy.
EWS run on previous version of this PR (hash faf5b01) |
faf5b01
to
8484ae5
Compare
EWS run on current version of this PR (hash 8484ae5)
|
https://bugs.webkit.org/show_bug.cgi?id=267600 rdar://121069952 Reviewed by Chris Dumez. Generate serialization for WCLayerUpdateInfo. * Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.h: (WebKit::WCLayerUpdateInfo::encode const): Deleted. (WebKit::WCLayerUpdateInfo::decode): Deleted. * Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in: Canonical link: https://commits.webkit.org/273862@main
8484ae5
to
107335f
Compare
Committed 273862@main (107335f): https://commits.webkit.org/273862@main Reviewed commits have been landed. Closing PR #22830 and removing active labels. |
107335f
8484ae5
π wincairoπ§ͺ wpe-wk2π§ͺ api-wpeπ§ͺ ios-wk2-wptπ§ͺ gtk-wk2π tv-simπ watch