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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "cc/layers/content_layer.h" | 8 #include "cc/layers/content_layer.h" |
9 #include "cc/layers/delegated_frame_provider.h" | 9 #include "cc/layers/delegated_frame_provider.h" |
10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 int commits_; | 1306 int commits_; |
1307 scoped_refptr<FakePaintedScrollbarLayer> scrollbar_layer_; | 1307 scoped_refptr<FakePaintedScrollbarLayer> scrollbar_layer_; |
1308 }; | 1308 }; |
1309 | 1309 |
1310 SINGLE_AND_MULTI_THREAD_TEST_F(ScrollbarLayerLostContext); | 1310 SINGLE_AND_MULTI_THREAD_TEST_F(ScrollbarLayerLostContext); |
1311 | 1311 |
1312 class UIResourceLostTest : public LayerTreeHostContextTest { | 1312 class UIResourceLostTest : public LayerTreeHostContextTest { |
1313 public: | 1313 public: |
1314 UIResourceLostTest() : time_step_(0) {} | 1314 UIResourceLostTest() : time_step_(0) {} |
1315 void InitializeSettings(LayerTreeSettings* settings) override { | 1315 void InitializeSettings(LayerTreeSettings* settings) override { |
1316 settings->texture_id_allocation_chunk_size = 1; | 1316 settings->renderer_settings.texture_id_allocation_chunk_size = 1; |
1317 } | 1317 } |
1318 void BeginTest() override { PostSetNeedsCommitToMainThread(); } | 1318 void BeginTest() override { PostSetNeedsCommitToMainThread(); } |
1319 void AfterTest() override {} | 1319 void AfterTest() override {} |
1320 | 1320 |
1321 // This is called on the main thread after each commit and | 1321 // This is called on the main thread after each commit and |
1322 // DidActivateTreeOnThread, with the value of time_step_ at the time | 1322 // DidActivateTreeOnThread, with the value of time_step_ at the time |
1323 // of the call to DidActivateTreeOnThread. Similar tests will do | 1323 // of the call to DidActivateTreeOnThread. Similar tests will do |
1324 // work on the main thread in DidCommit but that is unsuitable because | 1324 // work on the main thread in DidCommit but that is unsuitable because |
1325 // the main thread work for these tests must happen after | 1325 // the main thread work for these tests must happen after |
1326 // DidActivateTreeOnThread, which happens after DidCommit with impl-side | 1326 // DidActivateTreeOnThread, which happens after DidCommit with impl-side |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1843 void AfterTest() override {} | 1843 void AfterTest() override {} |
1844 | 1844 |
1845 bool deferred_; | 1845 bool deferred_; |
1846 }; | 1846 }; |
1847 | 1847 |
1848 SINGLE_AND_MULTI_THREAD_TEST_F( | 1848 SINGLE_AND_MULTI_THREAD_TEST_F( |
1849 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); | 1849 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); |
1850 | 1850 |
1851 } // namespace | 1851 } // namespace |
1852 } // namespace cc | 1852 } // namespace cc |
OLD | NEW |