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

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

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 months 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
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/location.h" 7 #include "base/location.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 1350
1351 TEST(LayerTreeHostFlingTest, DidStopFlingingThread) { 1351 TEST(LayerTreeHostFlingTest, DidStopFlingingThread) {
1352 base::Thread impl_thread("cc"); 1352 base::Thread impl_thread("cc");
1353 ASSERT_TRUE(impl_thread.Start()); 1353 ASSERT_TRUE(impl_thread.Start());
1354 1354
1355 bool received_stop_flinging = false; 1355 bool received_stop_flinging = false;
1356 LayerTreeSettings settings; 1356 LayerTreeSettings settings;
1357 1357
1358 ThreadCheckingInputHandlerClient input_handler_client( 1358 ThreadCheckingInputHandlerClient input_handler_client(
1359 impl_thread.task_runner().get(), &received_stop_flinging); 1359 impl_thread.task_runner().get(), &received_stop_flinging);
1360 FakeLayerTreeHostClient client(FakeLayerTreeHostClient::DIRECT_3D); 1360 FakeLayerTreeHostClient client;
1361 1361
1362 ASSERT_TRUE(impl_thread.task_runner()); 1362 ASSERT_TRUE(impl_thread.task_runner());
1363 TestSharedBitmapManager shared_bitmap_manager; 1363 TestSharedBitmapManager shared_bitmap_manager;
1364 TestTaskGraphRunner task_graph_runner; 1364 TestTaskGraphRunner task_graph_runner;
1365 1365
1366 LayerTreeHost::InitParams params; 1366 LayerTreeHost::InitParams params;
1367 params.client = &client; 1367 params.client = &client;
1368 params.shared_bitmap_manager = &shared_bitmap_manager; 1368 params.shared_bitmap_manager = &shared_bitmap_manager;
1369 params.task_graph_runner = &task_graph_runner; 1369 params.task_graph_runner = &task_graph_runner;
1370 params.settings = &settings; 1370 params.settings = &settings;
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 int num_impl_commits_; 1851 int num_impl_commits_;
1852 int num_aborted_commits_; 1852 int num_aborted_commits_;
1853 int num_impl_scrolls_; 1853 int num_impl_scrolls_;
1854 int num_draws_; 1854 int num_draws_;
1855 }; 1855 };
1856 1856
1857 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestScrollAbortedCommitMFBA); 1857 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestScrollAbortedCommitMFBA);
1858 1858
1859 } // namespace 1859 } // namespace
1860 } // namespace cc 1860 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_record_gpu_histogram.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698