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/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 } | 456 } |
457 | 457 |
458 private: | 458 private: |
459 class MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface | 459 class MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface |
460 : public FakeOutputSurface { | 460 : public FakeOutputSurface { |
461 public: | 461 public: |
462 ~MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface() {} | 462 ~MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface() {} |
463 explicit MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface( | 463 explicit MockSetWorkerContextShouldAggressivelyFreeResourcesOutputSurface( |
464 bool delegated_rendering) | 464 bool delegated_rendering) |
465 : FakeOutputSurface(TestContextProvider::Create(), | 465 : FakeOutputSurface(TestContextProvider::Create(), |
466 TestContextProvider::Create(), | 466 TestContextProvider::CreateWorker(), |
467 delegated_rendering) {} | 467 delegated_rendering) {} |
468 MOCK_METHOD1(SetWorkerContextShouldAggressivelyFreeResources, | 468 MOCK_METHOD1(SetWorkerContextShouldAggressivelyFreeResources, |
469 void(bool is_visible)); | 469 void(bool is_visible)); |
470 }; | 470 }; |
471 }; | 471 }; |
472 | 472 |
473 // Test if the LTH successfully frees resources on the worker context when | 473 // Test if the LTH successfully frees resources on the worker context when |
474 // visibility is set to false. | 474 // visibility is set to false. |
475 class LayerTreeHostFreeWorkerContextResourcesOnInvisible | 475 class LayerTreeHostFreeWorkerContextResourcesOnInvisible |
476 : public LayerTreeHostFreeWorkerContextResourcesTest { | 476 : public LayerTreeHostFreeWorkerContextResourcesTest { |
(...skipping 5774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6251 ScrollAndScaleSet scale_info_; | 6251 ScrollAndScaleSet scale_info_; |
6252 ScrollAndScaleSet no_op_info_; | 6252 ScrollAndScaleSet no_op_info_; |
6253 bool requested_update_layers_; | 6253 bool requested_update_layers_; |
6254 int commit_count_; | 6254 int commit_count_; |
6255 }; | 6255 }; |
6256 | 6256 |
6257 MULTI_THREAD_TEST_F(LayerTreeHostScrollingAndScalingUpdatesLayers); | 6257 MULTI_THREAD_TEST_F(LayerTreeHostScrollingAndScalingUpdatesLayers); |
6258 | 6258 |
6259 } // namespace | 6259 } // namespace |
6260 } // namespace cc | 6260 } // namespace cc |
OLD | NEW |