Some type encoders are implemented in Encoder class Most type encoders for IPC serialization are implemented in the type (T::encode(Encoder&)) or in ArgumentCoder<T> template. However, arithmetic types and enums are implemented in Encoder. This makes it hard to implement other types of Encoders, since this code should be somehow duplicated or extracted redundantly to a base template. Instead, it would be consistent if all the serialization would be in in the T::encode or ArgumentCoder<T>::encode. This would be important for WebGL IPC, where the stream serialization would in general use the base serialization code, but some details of the Encoder would need to differ.
Created attachment 417398 [details] Patch
Created attachment 417404 [details] Patch
<rdar://problem/73327684>
Comment on attachment 417404 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417404&action=review > Source/WebKit/ChangeLog:15 > + corresponidng modification to Decoder class for consistency. typo: corresponidng
Created attachment 418559 [details] Patch
Created attachment 418563 [details] Patch
Committed r272058: <https://trac.webkit.org/changeset/272058> All reviewed patches have been landed. Closing bug and clearing flags on attachment 418563 [details].