| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/blimp/layer_tree_host_remote.h" | 5 #include "cc/blimp/layer_tree_host_remote.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <unordered_set> | 8 #include <unordered_set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/memory/ptr_util.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "cc/animation/animation_host.h" | 14 #include "cc/animation/animation_host.h" |
| 14 #include "cc/layers/layer.h" | 15 #include "cc/layers/layer.h" |
| 15 #include "cc/output/begin_frame_args.h" | 16 #include "cc/output/begin_frame_args.h" |
| 16 #include "cc/proto/client_state_update.pb.h" | 17 #include "cc/proto/client_state_update.pb.h" |
| 17 #include "cc/proto/compositor_message.pb.h" | 18 #include "cc/proto/compositor_message.pb.h" |
| 18 #include "cc/proto/gfx_conversions.h" | 19 #include "cc/proto/gfx_conversions.h" |
| 19 #include "cc/test/fake_image_serialization_processor.h" | 20 #include "cc/test/fake_image_serialization_processor.h" |
| 20 #include "cc/test/fake_remote_compositor_bridge.h" | 21 #include "cc/test/fake_remote_compositor_bridge.h" |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 DCHECK(compositor_proto_state); | 529 DCHECK(compositor_proto_state); |
| 529 const proto::LayerUpdate& layer_updates_second_commit = | 530 const proto::LayerUpdate& layer_updates_second_commit = |
| 530 compositor_proto_state->compositor_message->layer_tree_host() | 531 compositor_proto_state->compositor_message->layer_tree_host() |
| 531 .layer_updates(); | 532 .layer_updates(); |
| 532 EXPECT_EQ(1, layer_updates_second_commit.layers_size()); | 533 EXPECT_EQ(1, layer_updates_second_commit.layers_size()); |
| 533 EXPECT_EQ(child_layer->id(), layer_updates_second_commit.layers(0).id()); | 534 EXPECT_EQ(child_layer->id(), layer_updates_second_commit.layers(0).id()); |
| 534 } | 535 } |
| 535 | 536 |
| 536 } // namespace | 537 } // namespace |
| 537 } // namespace cc | 538 } // namespace cc |
| OLD | NEW |