[Webkit-unassigned] [Bug 220519] New: Some type serialization encoders are implemented in Encoder class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 11:49:51 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220519

            Bug ID: 220519
           Summary: Some type serialization encoders are implemented in
                    Encoder class
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: ASSIGNED
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kkinnunen at apple.com
            Blocks: 217211

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.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=217211
[Bug 217211] Support running WebGL in GPU process
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210111/6b951c88/attachment.htm>


More information about the webkit-unassigned mailing list