OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
6 | 6 |
7 #include "cc/picture_layer.h" | 7 #include "cc/layers/picture_layer.h" |
8 #include "cc/test/fake_content_layer_client.h" | 8 #include "cc/test/fake_content_layer_client.h" |
9 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
10 #include "cc/test/fake_layer_tree_host_impl.h" | 10 #include "cc/test/fake_layer_tree_host_impl.h" |
11 #include "cc/test/fake_output_surface.h" | 11 #include "cc/test/fake_output_surface.h" |
12 #include "cc/trees/layer_tree_impl.h" | 12 #include "cc/trees/layer_tree_impl.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/skia/include/core/SkDevice.h" | 14 #include "third_party/skia/include/core/SkDevice.h" |
15 #include "ui/gfx/rect_conversions.h" | 15 #include "ui/gfx/rect_conversions.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 used_tilings.push_back(active_layer_->tilings().tiling_at(1)); | 699 used_tilings.push_back(active_layer_->tilings().tiling_at(1)); |
700 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); | 700 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); |
701 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); | 701 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); |
702 used_tilings.clear(); | 702 used_tilings.clear(); |
703 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); | 703 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); |
704 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); | 704 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); |
705 } | 705 } |
706 | 706 |
707 } // namespace | 707 } // namespace |
708 } // namespace cc | 708 } // namespace cc |
OLD | NEW |