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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 { | 51 { |
52 FakeLayerTreeHostImpl host_impl(ImplSidePaintingSettings(), &proxy); | 52 FakeLayerTreeHostImpl host_impl(ImplSidePaintingSettings(), &proxy); |
53 host_impl.CreatePendingTree(); | 53 host_impl.CreatePendingTree(); |
54 scoped_ptr<FakePictureLayerImpl> layer_impl = | 54 scoped_ptr<FakePictureLayerImpl> layer_impl = |
55 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1); | 55 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1); |
56 | 56 |
57 layer->PushPropertiesTo(layer_impl.get()); | 57 layer->PushPropertiesTo(layer_impl.get()); |
58 EXPECT_FALSE(layer_impl->CanHaveTilings()); | 58 EXPECT_FALSE(layer_impl->CanHaveTilings()); |
59 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0)); | 59 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0)); |
60 EXPECT_TRUE(layer_impl->pile()->size() == gfx::Size(0, 0)); | 60 EXPECT_TRUE(layer_impl->pile()->size() == gfx::Size(0, 0)); |
61 EXPECT_TRUE(layer_impl->pile()->recorded_region().IsEmpty()); | 61 EXPECT_FALSE(layer_impl->pile()->HasRecordings()); |
62 } | 62 } |
63 #ifndef NDEBUG | 63 #ifndef NDEBUG |
64 proxy.SetCurrentThreadIsImplThread(false); | 64 proxy.SetCurrentThreadIsImplThread(false); |
65 #endif | 65 #endif |
66 } | 66 } |
67 | 67 |
68 } // namespace | 68 } // namespace |
69 } // namespace cc | 69 } // namespace cc |
OLD | NEW |