OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layers/delegated_renderer_layer.h" | 5 #include "cc/layers/delegated_renderer_layer.h" |
6 | 6 |
7 #include "cc/layers/delegated_frame_provider.h" | 7 #include "cc/layers/delegated_frame_provider.h" |
8 #include "cc/layers/delegated_frame_resource_collection.h" | 8 #include "cc/layers/delegated_frame_resource_collection.h" |
9 #include "cc/layers/solid_color_layer.h" | 9 #include "cc/layers/solid_color_layer.h" |
10 #include "cc/output/delegated_frame_data.h" | 10 #include "cc/output/delegated_frame_data.h" |
11 #include "cc/resources/resource_update_queue.h" | |
enne (OOO)
2014/12/16 19:08:48
Is this needed?
enne (OOO)
2014/12/16 19:08:48
Is this needed?
awoloszyn
2014/12/16 21:54:29
Nope, has been removed.
| |
11 #include "cc/test/fake_delegated_renderer_layer.h" | 12 #include "cc/test/fake_delegated_renderer_layer.h" |
12 #include "cc/test/fake_layer_tree_host.h" | 13 #include "cc/test/fake_layer_tree_host.h" |
13 #include "cc/test/fake_proxy.h" | 14 #include "cc/test/fake_proxy.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 namespace { | 18 namespace { |
18 | 19 |
19 class DelegatedRendererLayerTest : public testing::Test { | 20 class DelegatedRendererLayerTest : public testing::Test { |
20 public: | 21 public: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 EXPECT_EQ(0, delegated_renderer_layer_->NumDescendantsThatDrawContent()); | 71 EXPECT_EQ(0, delegated_renderer_layer_->NumDescendantsThatDrawContent()); |
71 EXPECT_EQ(1, root_layer_->NumDescendantsThatDrawContent()); | 72 EXPECT_EQ(1, root_layer_->NumDescendantsThatDrawContent()); |
72 delegated_renderer_layer_->SetIsDrawable(true); | 73 delegated_renderer_layer_->SetIsDrawable(true); |
73 EXPECT_EQ(1000, delegated_renderer_layer_->NumDescendantsThatDrawContent()); | 74 EXPECT_EQ(1000, delegated_renderer_layer_->NumDescendantsThatDrawContent()); |
74 EXPECT_EQ(1001, layer_before_->NumDescendantsThatDrawContent()); | 75 EXPECT_EQ(1001, layer_before_->NumDescendantsThatDrawContent()); |
75 EXPECT_EQ(1002, root_layer_->NumDescendantsThatDrawContent()); | 76 EXPECT_EQ(1002, root_layer_->NumDescendantsThatDrawContent()); |
76 } | 77 } |
77 | 78 |
78 } // namespace | 79 } // namespace |
79 } // namespace cc | 80 } // namespace cc |
OLD | NEW |