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/layers/picture_layer.h" | 5 #include "cc/layers/picture_layer.h" |
6 | 6 |
7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
8 #include "cc/layers/picture_layer_impl.h" | 8 #include "cc/layers/picture_layer_impl.h" |
9 #include "cc/resources/resource_update_queue.h" | 9 #include "cc/resources/resource_update_queue.h" |
10 #include "cc/test/fake_layer_tree_host.h" | 10 #include "cc/test/fake_layer_tree_host.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 TestSharedBitmapManager shared_bitmap_manager; | 55 TestSharedBitmapManager shared_bitmap_manager; |
56 FakeLayerTreeHostImpl host_impl( | 56 FakeLayerTreeHostImpl host_impl( |
57 ImplSidePaintingSettings(), &proxy, &shared_bitmap_manager); | 57 ImplSidePaintingSettings(), &proxy, &shared_bitmap_manager); |
58 host_impl.CreatePendingTree(); | 58 host_impl.CreatePendingTree(); |
59 scoped_ptr<FakePictureLayerImpl> layer_impl = | 59 scoped_ptr<FakePictureLayerImpl> layer_impl = |
60 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1); | 60 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1); |
61 | 61 |
62 layer->PushPropertiesTo(layer_impl.get()); | 62 layer->PushPropertiesTo(layer_impl.get()); |
63 EXPECT_FALSE(layer_impl->CanHaveTilings()); | 63 EXPECT_FALSE(layer_impl->CanHaveTilings()); |
64 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0)); | 64 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0)); |
65 EXPECT_TRUE(layer_impl->pile()->size() == gfx::Size(0, 0)); | 65 EXPECT_TRUE(layer_impl->pile()->tiling_rect().size() == gfx::Size(0, 0)); |
enne (OOO)
2014/04/11 20:19:51
tiling_rect() == gfx::Rect()?
ernstm
2014/04/11 23:43:51
Done.
| |
66 EXPECT_FALSE(layer_impl->pile()->HasRecordings()); | 66 EXPECT_FALSE(layer_impl->pile()->HasRecordings()); |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 } // namespace | 70 } // namespace |
71 } // namespace cc | 71 } // namespace cc |
OLD | NEW |