OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "cc/animation/timing_function.h" | 10 #include "cc/animation/timing_function.h" |
(...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2178 | 2178 |
2179 virtual void AfterTest() OVERRIDE { | 2179 virtual void AfterTest() OVERRIDE { |
2180 } | 2180 } |
2181 | 2181 |
2182 private: | 2182 private: |
2183 base::TimeTicks frame_time_; | 2183 base::TimeTicks frame_time_; |
2184 }; | 2184 }; |
2185 | 2185 |
2186 MULTI_THREAD_TEST_F(LayerTreeHostTestVSyncNotification); | 2186 MULTI_THREAD_TEST_F(LayerTreeHostTestVSyncNotification); |
2187 | 2187 |
| 2188 class LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation |
| 2189 : public LayerTreeHostTest { |
| 2190 protected: |
| 2191 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
| 2192 settings->impl_side_painting = true; |
| 2193 } |
| 2194 |
| 2195 virtual void SetupTree() OVERRIDE { |
| 2196 LayerTreeHostTest::SetupTree(); |
| 2197 |
| 2198 scoped_refptr<Layer> layer = PictureLayer::Create(&client_); |
| 2199 layer->SetTransform(gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); |
| 2200 layer->SetBounds(gfx::Size(10, 10)); |
| 2201 layer_tree_host()->root_layer()->AddChild(layer); |
| 2202 } |
| 2203 |
| 2204 virtual void BeginTest() OVERRIDE { |
| 2205 PostSetNeedsCommitToMainThread(); |
| 2206 } |
| 2207 |
| 2208 virtual void TreeActivatedOnThread(LayerTreeHostImpl* host_impl) { |
| 2209 EndTest(); |
| 2210 } |
| 2211 |
| 2212 virtual void AfterTest() OVERRIDE { |
| 2213 } |
| 2214 |
| 2215 FakeContentLayerClient client_; |
| 2216 }; |
| 2217 |
| 2218 MULTI_THREAD_TEST_F( |
| 2219 LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation); |
| 2220 |
2188 } // namespace | 2221 } // namespace |
2189 } // namespace cc | 2222 } // namespace cc |
OLD | NEW |