Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 1423523002: Add support for (de)serializing cc::Layer properties. (Closed)

Created:
5 years, 2 months ago by nyquist
Modified:
5 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@serialize-layer-hierarchy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -1 line) Patch
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +34 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M cc/layers/layer_proto_converter.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +21 lines, -1 line 0 comments Download
M cc/layers/layer_proto_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
M cc/layers/layer_proto_converter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +200 lines, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +135 lines, -0 lines 0 comments Download
M cc/proto/layer.proto View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/40001
5 years, 2 months ago (2015-10-21 21:04:43 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/78415) mac_chromium_compile_dbg_ng on ...
5 years, 2 months ago (2015-10-21 21:21:01 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/80001
5 years, 1 month ago (2015-11-07 00:13:21 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-07 01:21:18 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/120001
5 years, 1 month ago (2015-11-07 14:17:41 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/140001
5 years, 1 month ago (2015-11-07 14:22:59 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-07 15:30:52 UTC) #19
nyquist
vmpstr: PTAL as cc/ OWNERS dtrainor: PTAL on behalf of blimp
5 years, 1 month ago (2015-11-07 15:56:54 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/160001
5 years, 1 month ago (2015-11-10 01:56:38 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-10 04:03:23 UTC) #25
David Trainor- moved to gerrit
lgtm! https://chromiumcodereview.appspot.com/1423523002/diff/160001/cc/layers/layer.h File cc/layers/layer.h (right): https://chromiumcodereview.appspot.com/1423523002/diff/160001/cc/layers/layer.h#newcode616 cc/layers/layer.h:616: // Deerialize all the necessary properties from proto::LayerProperties ...
5 years, 1 month ago (2015-11-11 15:34:23 UTC) #26
nyquist
Done with all comments from dtrainor. vmpstr: PTAL. Should be ready for review :-) https://codereview.chromium.org/1423523002/diff/160001/cc/layers/layer.h ...
5 years, 1 month ago (2015-11-11 18:31:57 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/180001
5 years, 1 month ago (2015-11-17 19:19:35 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-17 20:25:47 UTC) #31
vmpstr
https://codereview.chromium.org/1423523002/diff/180001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1423523002/diff/180001/cc/layers/layer.cc#newcode1432 cc/layers/layer.cc:1432: if (needs_push_properties_) Is this to reduce the size of ...
5 years, 1 month ago (2015-11-17 21:05:44 UTC) #32
nyquist
vmpstr: PTAL https://codereview.chromium.org/1423523002/diff/180001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1423523002/diff/180001/cc/layers/layer.cc#newcode1432 cc/layers/layer.cc:1432: if (needs_push_properties_) On 2015/11/17 21:05:44, vmpstr wrote: ...
5 years, 1 month ago (2015-11-18 00:24:34 UTC) #33
vmpstr
https://codereview.chromium.org/1423523002/diff/220001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1423523002/diff/220001/cc/layers/layer.cc#newcode1436 cc/layers/layer.cc:1436: num_dependents_need_push_properties_ = 0; nit: you can just save a ...
5 years, 1 month ago (2015-11-18 04:05:25 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/240001
5 years, 1 month ago (2015-11-18 07:15:53 UTC) #36
nyquist
vmpstr: PTAL I couldn't find a good name for the extra test you wanted me ...
5 years, 1 month ago (2015-11-18 07:15:59 UTC) #37
vmpstr
lgtm
5 years, 1 month ago (2015-11-18 07:33:52 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/97587)
5 years, 1 month ago (2015-11-18 08:26:36 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423523002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423523002/240001
5 years, 1 month ago (2015-11-18 15:06:34 UTC) #43
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 1 month ago (2015-11-18 16:10:03 UTC) #44
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 16:10:54 UTC) #45
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/bc1290a4a560f6856427fffc0b9662e8d79e89b3
Cr-Commit-Position: refs/heads/master@{#360339}

Powered by Google App Engine
This is Rietveld 408576698