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

Issue 2451913002: Add serialization/deserialization for FakePictureLayer for testing. (Closed)

Created:
4 years, 1 month ago by xingliu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add serialization/deserialization for FakePictureLayer for testing. Previously we serialize/deserialize FakePictureLayer into PictureLayer. This introduced an issue in LayerTreeHostTestReadyToActivateNonEmpty and other unit test cases in layer_tree_host_unittests.cc that downcasting from PictureLayerImpl to FakePictureLayerImpl will fail. The data flow was: FakePictureLayer==>PictureLayer==>PictureLayerImpl==> FakePictureLayerImpl(downcast failure). This CL adds procedure to process FakePictureLayer, so it can be deserialized and down cast correctly. The data flow becomes: FakePictureLayer==>FakePictureLayer==>FakePictureLayerImpl BUG=657871 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/b67229217f5b54fad888c74f6528be4af51e5a6e Cr-Commit-Position: refs/heads/master@{#427886}

Patch Set 1 #

Patch Set 2 : Some cleaning on FakePictureLayer. #

Total comments: 3

Patch Set 3 : Group up overrides in fake_picture_layer.h #

Total comments: 2

Patch Set 4 : Group up another Layer override. #

Patch Set 5 : More cc unittests for LayerTreeHostRemote. #

Patch Set 6 : Revert change from another CL, that I cl patch this one to that one. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -25 lines) Patch
M cc/blimp/compositor_state_deserializer.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M cc/blimp/layer_factory.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/layer_proto_converter.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/proto/layer.proto View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer.h View 1 2 3 2 chunks +4 lines, -18 lines 0 comments Download
M cc/test/fake_picture_layer.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download
M cc/test/remote_client_layer_factory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/remote_client_layer_factory.cc View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (30 generated)
xingliu
Please help take a look, process the FakePictureLayer in testing code.
4 years, 1 month ago (2016-10-25 22:14:29 UTC) #6
Khushal
lgtm. +ajuma for cc review. https://codereview.chromium.org/2451913002/diff/20001/cc/test/fake_picture_layer.h File cc/test/fake_picture_layer.h (left): https://codereview.chromium.org/2451913002/diff/20001/cc/test/fake_picture_layer.h#oldcode49 cc/test/fake_picture_layer.h:49: DisplayItemList* display_list() const { ...
4 years, 1 month ago (2016-10-26 01:08:03 UTC) #14
David Trainor- moved to gerrit
Thanks! This looks good.
4 years, 1 month ago (2016-10-26 01:39:51 UTC) #15
David Trainor- moved to gerrit
lgtm
4 years, 1 month ago (2016-10-26 01:42:28 UTC) #16
ajuma
lgtm
4 years, 1 month ago (2016-10-26 12:56:22 UTC) #17
xingliu
Grouped up overrides in fake picture layer header. About to commit this CL to CQ. ...
4 years, 1 month ago (2016-10-26 17:56:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451913002/40001
4 years, 1 month ago (2016-10-26 19:42:10 UTC) #25
Khushal
https://codereview.chromium.org/2451913002/diff/40001/cc/test/fake_picture_layer.h File cc/test/fake_picture_layer.h (right): https://codereview.chromium.org/2451913002/diff/40001/cc/test/fake_picture_layer.h#newcode51 cc/test/fake_picture_layer.h:51: void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; nit: Shouldn't this be ...
4 years, 1 month ago (2016-10-26 20:04:55 UTC) #26
xingliu
https://codereview.chromium.org/2451913002/diff/40001/cc/test/fake_picture_layer.h File cc/test/fake_picture_layer.h (right): https://codereview.chromium.org/2451913002/diff/40001/cc/test/fake_picture_layer.h#newcode51 cc/test/fake_picture_layer.h:51: void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; On 2016/10/26 20:04:55, Khushal ...
4 years, 1 month ago (2016-10-26 20:13:18 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451913002/60001
4 years, 1 month ago (2016-10-26 21:25:51 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451913002/100001
4 years, 1 month ago (2016-10-26 21:39:22 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/305690)
4 years, 1 month ago (2016-10-26 22:40:48 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451913002/100001
4 years, 1 month ago (2016-10-26 22:45:38 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-27 00:07:42 UTC) #43
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 00:10:52 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b67229217f5b54fad888c74f6528be4af51e5a6e
Cr-Commit-Position: refs/heads/master@{#427886}

Powered by Google App Engine
This is Rietveld 408576698