[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-changes
Subject:    [webkit-changes] [WebKit/WebKit] e6e6c0: Refactor WCLayerUpdateInfo for serialization
From:       Don Olmstead <noreply () github ! com>
Date:       2024-01-31 18:39:22
Message-ID: WebKit/WebKit/push/refs/heads/main/77e5bb-e6e6c0 () github ! com
[Download RAW message or body]

  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6e6c08dd097ff75e620ca93f357af5cabb65a8a
      https://github.com/WebKit/WebKit/commit/e6e6c08dd097ff75e620ca93f357af5cabb65a8a
  Author: Don Olmstead <don.olmstead@sony.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp
    M Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp
    M Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.h
    M Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in

  Log Message:
  -----------
  Refactor WCLayerUpdateInfo for serialization
https://bugs.webkit.org/show_bug.cgi?id=267968

Reviewed by Chris Dumez.

Modify `WCLayerUpdateInfo` so it's serialization can be generated. The
values to serialize in an instance are controlled by an `OptionSet`.
The generator supports this through `OptionalTupleBit` but it expects
one field per enumeration which is not the case for `WCLayerUpdateInfo`.
Group those fields together into nested structs and sort the fields by
the value of `WCLayerChange` they correspond to.

The actual serialization of `WCLayerUpdateInfo` will come in a separate
change.

* Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp:
(WebKit::WCScene::update):
* Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp:
(WebKit::GraphicsLayerWC::flushCompositingStateForThisLayerOnly):
* Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.h:
(WebKit::WCLayerUpdateInfo::encode const):
(WebKit::WCLayerUpdateInfo::decode):
* Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in:

Canonical link: https://commits.webkit.org/273839@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic