Chromium Code Reviews| 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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2479 void AfterTest() override {} | 2479 void AfterTest() override {} |
| 2480 | 2480 |
| 2481 private: | 2481 private: |
| 2482 FakeContentLayerClient client_; | 2482 FakeContentLayerClient client_; |
| 2483 scoped_refptr<Layer> root_layer_; | 2483 scoped_refptr<Layer> root_layer_; |
| 2484 scoped_refptr<Layer> parent_layer_; | 2484 scoped_refptr<Layer> parent_layer_; |
| 2485 scoped_refptr<Layer> child_layer_; | 2485 scoped_refptr<Layer> child_layer_; |
| 2486 int swap_count_; | 2486 int swap_count_; |
| 2487 }; | 2487 }; |
| 2488 | 2488 |
| 2489 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestResourcelessSoftwareDraw); | 2489 MULTI_THREAD_TEST_F(LayerTreeHostTestResourcelessSoftwareDraw); |
|
danakj
2015/10/22 18:49:23
Leave a comment why this can't/shouldn't test sing
boliu
2015/10/22 21:50:08
Done.
| |
| 2490 | 2490 |
| 2491 // Test for UI Resource management. | 2491 // Test for UI Resource management. |
| 2492 class LayerTreeHostTestUIResource : public LayerTreeHostTest { | 2492 class LayerTreeHostTestUIResource : public LayerTreeHostTest { |
| 2493 public: | 2493 public: |
| 2494 LayerTreeHostTestUIResource() : num_ui_resources_(0) {} | 2494 LayerTreeHostTestUIResource() : num_ui_resources_(0) {} |
| 2495 | 2495 |
| 2496 void InitializeSettings(LayerTreeSettings* settings) override { | 2496 void InitializeSettings(LayerTreeSettings* settings) override { |
| 2497 settings->renderer_settings.texture_id_allocation_chunk_size = 1; | 2497 settings->renderer_settings.texture_id_allocation_chunk_size = 1; |
| 2498 } | 2498 } |
| 2499 | 2499 |
| (...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6375 EndTest(); | 6375 EndTest(); |
| 6376 } | 6376 } |
| 6377 | 6377 |
| 6378 void AfterTest() override {} | 6378 void AfterTest() override {} |
| 6379 }; | 6379 }; |
| 6380 | 6380 |
| 6381 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface); | 6381 MULTI_THREAD_TEST_F(LayerTreeHostTestDestroyWhileInitializingOutputSurface); |
| 6382 | 6382 |
| 6383 } // namespace | 6383 } // namespace |
| 6384 } // namespace cc | 6384 } // namespace cc |
| OLD | NEW |