| 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/picture_layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/layer_tree_impl.h" | 7 #include "cc/layer_tree_impl.h" |
| 8 #include "cc/picture_layer.h" | 8 #include "cc/picture_layer.h" |
| 9 #include "cc/test/fake_content_layer_client.h" | 9 #include "cc/test/fake_content_layer_client.h" |
| 10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
| 11 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
| 12 #include "cc/test/fake_output_surface.h" | 12 #include "cc/test/fake_output_surface.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 "ui/gfx/rect_conversions.h" | 15 #include "ui/gfx/rect_conversions.h" |
| 15 | 16 |
| 16 namespace cc { | 17 namespace cc { |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 class TestablePictureLayerImpl : public PictureLayerImpl { | 20 class TestablePictureLayerImpl : public PictureLayerImpl { |
| 20 public: | 21 public: |
| 21 static scoped_ptr<TestablePictureLayerImpl> create( | 22 static scoped_ptr<TestablePictureLayerImpl> create( |
| 22 LayerTreeImpl* treeImpl, | 23 LayerTreeImpl* treeImpl, |
| 23 int id, | 24 int id, |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); | 693 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); |
| 693 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); | 694 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); |
| 694 used_tilings.clear(); | 695 used_tilings.clear(); |
| 695 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); | 696 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); |
| 696 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); | 697 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); |
| 697 | 698 |
| 698 } | 699 } |
| 699 | 700 |
| 700 } // namespace | 701 } // namespace |
| 701 } // namespace cc | 702 } // namespace cc |
| OLD | NEW |