| 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/layer.h" | 5 #include "cc/layers/layer.h" |
| 6 | 6 |
| 7 #include "cc/resources/layer_painter.h" | 7 #include "cc/resources/layer_painter.h" |
| 8 #include "cc/test/fake_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
| 9 #include "cc/test/fake_layer_tree_host.h" | 9 #include "cc/test/fake_layer_tree_host.h" |
| 10 #include "cc/test/fake_layer_tree_host_client.h" | 10 #include "cc/test/fake_layer_tree_host_client.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Properties changed. | 74 // Properties changed. |
| 75 timer_.Reset(); | 75 timer_.Reset(); |
| 76 do { | 76 do { |
| 77 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f)); | 77 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f)); |
| 78 test_layer->SetAnchorPointZ(anchor_point_z); | 78 test_layer->SetAnchorPointZ(anchor_point_z); |
| 79 test_layer->SetContentsOpaque(contents_opaque); | 79 test_layer->SetContentsOpaque(contents_opaque); |
| 80 test_layer->SetDoubleSided(double_sided); | 80 test_layer->SetDoubleSided(double_sided); |
| 81 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree); | 81 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree); |
| 82 test_layer->SetMasksToBounds(masks_to_bounds); | 82 test_layer->SetMasksToBounds(masks_to_bounds); |
| 83 test_layer->SetScrollClipLayer(scrollable ? test_layer : NULL); | 83 test_layer->SetScrollable(scrollable); |
| 84 test_layer->PushPropertiesTo(impl_layer.get()); | 84 test_layer->PushPropertiesTo(impl_layer.get()); |
| 85 | 85 |
| 86 anchor_point_z += 0.01f; | 86 anchor_point_z += 0.01f; |
| 87 scrollable = !scrollable; | 87 scrollable = !scrollable; |
| 88 contents_opaque = !contents_opaque; | 88 contents_opaque = !contents_opaque; |
| 89 double_sided = !double_sided; | 89 double_sided = !double_sided; |
| 90 hide_layer_and_subtree = !hide_layer_and_subtree; | 90 hide_layer_and_subtree = !hide_layer_and_subtree; |
| 91 masks_to_bounds = !masks_to_bounds; | 91 masks_to_bounds = !masks_to_bounds; |
| 92 | 92 |
| 93 timer_.NextLap(); | 93 timer_.NextLap(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 111 "", | 111 "", |
| 112 "props_didnt_change", | 112 "props_didnt_change", |
| 113 timer_.LapsPerSecond(), | 113 timer_.LapsPerSecond(), |
| 114 "runs/s", | 114 "runs/s", |
| 115 true); | 115 true); |
| 116 } | 116 } |
| 117 | 117 |
| 118 | 118 |
| 119 } // namespace | 119 } // namespace |
| 120 } // namespace cc | 120 } // namespace cc |
| OLD | NEW |