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

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

Issue 2537683002: cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: update Created 3 years, 12 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 TestTaskGraphRunner task_graph_runner; 1318 TestTaskGraphRunner task_graph_runner;
1319 1319
1320 auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN); 1320 auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
1321 1321
1322 LayerTreeHostInProcess::InitParams params; 1322 LayerTreeHostInProcess::InitParams params;
1323 params.client = &layer_tree_host_client; 1323 params.client = &layer_tree_host_client;
1324 params.task_graph_runner = &task_graph_runner; 1324 params.task_graph_runner = &task_graph_runner;
1325 params.settings = &settings; 1325 params.settings = &settings;
1326 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); 1326 params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
1327 params.mutator_host = animation_host.get(); 1327 params.mutator_host = animation_host.get();
1328 params.image_worker_task_runner = nullptr;
1328 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host = 1329 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host =
1329 LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(), 1330 LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(),
1330 &params); 1331 &params);
1331 1332
1332 ThreadCheckingInputHandlerClient input_handler_client( 1333 ThreadCheckingInputHandlerClient input_handler_client(
1333 impl_thread.task_runner().get(), &received_stop_flinging); 1334 impl_thread.task_runner().get(), &received_stop_flinging);
1334 impl_thread.task_runner()->PostTask( 1335 impl_thread.task_runner()->PostTask(
1335 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread, 1336 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread,
1336 layer_tree_host->GetInputHandler(), 1337 layer_tree_host->GetInputHandler(),
1337 base::Unretained(&input_handler_client))); 1338 base::Unretained(&input_handler_client)));
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 2240
2240 const float initial_page_scale_ = 0.5f; 2241 const float initial_page_scale_ = 0.5f;
2241 const float page_scale_update_ = 0.2f; 2242 const float page_scale_update_ = 0.2f;
2242 }; 2243 };
2243 2244
2244 // The reflected deltas are supported in threaded mode only. 2245 // The reflected deltas are supported in threaded mode only.
2245 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestAppliesReflectedDeltas); 2246 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestAppliesReflectedDeltas);
2246 2247
2247 } // namespace 2248 } // namespace
2248 } // namespace cc 2249 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698