DescriptionAdd support for (de)serializing cc::Layer properties.
This CL adds a protocol buffer for serializing the Layer properties,
without any properties being serialized yet, except
needs_push_properties and num_dependents_need_push_properties.
It depends on the hierarchy already being up to date when the property
deserialization happens.
When properties are changed, only nodes with changed properties will be
serialized with their properties, and ascendants of such Layers will
be serialized for the two metadata properties mentioned above.
The base Layer class and all descendant classes will have their own
proto messages for the properties they require. The content of these
messages will be added in later CLs, but the base Layer class framework
and proto message is added in this CL to make it clear how this will
look like going forward.
Depends on https://codereview.chromium.org/1398443008/ for serialization
of the hierarchy.
BUG=538710
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/bc1290a4a560f6856427fffc0b9662e8d79e89b3
Cr-Commit-Position: refs/heads/master@{#360339}
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Rebased #Patch Set 4 : Merge origin/master #Patch Set 5 : Added tests and cleaned up code #Patch Set 6 : Changed to be non-virtual for core parts. Simplified proto converter test. #Patch Set 7 : squash-branch and rebase master #Patch Set 8 : Fix comment #Patch Set 9 : Add framework for base Layer class properties #
Total comments: 6
Patch Set 10 : Addressed comments from dtrainor@ #
Total comments: 6
Patch Set 11 : Move recursive parts of serialization to LayerProtoConverter::SerializeLayerProperties #Patch Set 12 : Add early return in LayerProtoConverter::RecursivelySerializeLayerProperties #
Total comments: 11
Patch Set 13 : Addressed comments about raw pointers and new test. #
Messages
Total messages: 45 (21 generated)
|