Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 675083002: Add cc::RendererSettings for use in with cc::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698