OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 case 1: | 1410 case 1: |
1411 EndTest(); | 1411 EndTest(); |
1412 break; | 1412 break; |
1413 } | 1413 } |
1414 } | 1414 } |
1415 | 1415 |
1416 void AfterTest() override {} | 1416 void AfterTest() override {} |
1417 | 1417 |
1418 virtual void DidScroll(Layer* layer) { | 1418 virtual void DidScroll(Layer* layer) { |
1419 if (scroll_destroy_whole_tree_) { | 1419 if (scroll_destroy_whole_tree_) { |
1420 layer_tree_host()->RegisterViewportLayers(NULL, NULL, NULL, NULL, NULL, | 1420 layer_tree_host()->RegisterViewportLayers( |
1421 NULL); | 1421 LayerTreeHost::ViewportLayers()); |
1422 layer_tree_host()->SetRootLayer(NULL); | 1422 layer_tree_host()->SetRootLayer(NULL); |
1423 EndTest(); | 1423 EndTest(); |
1424 return; | 1424 return; |
1425 } | 1425 } |
1426 layer->RemoveFromParent(); | 1426 layer->RemoveFromParent(); |
1427 } | 1427 } |
1428 | 1428 |
1429 protected: | 1429 protected: |
1430 class FakeLayerScrollClient { | 1430 class FakeLayerScrollClient { |
1431 public: | 1431 public: |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 CompletionEvent* impl_side_invalidation_event_ = nullptr; | 2261 CompletionEvent* impl_side_invalidation_event_ = nullptr; |
2262 | 2262 |
2263 // Main thread. | 2263 // Main thread. |
2264 int num_of_deltas_ = 0; | 2264 int num_of_deltas_ = 0; |
2265 }; | 2265 }; |
2266 | 2266 |
2267 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestImplSideInvalidation); | 2267 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestImplSideInvalidation); |
2268 | 2268 |
2269 } // namespace | 2269 } // namespace |
2270 } // namespace cc | 2270 } // namespace cc |
OLD | NEW |