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

Side by Side Diff: cc/test/fake_layer_tree_host.cc

Issue 2191983002: cc : Use dynamically calculated target space transforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 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
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/fake_layer_tree_host.h" 5 #include "cc/test/fake_layer_tree_host.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/animation/animation_host.h" 8 #include "cc/animation/animation_host.h"
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/test/fake_image_serialization_processor.h" 10 #include "cc/test/fake_image_serialization_processor.h"
(...skipping 17 matching lines...) Expand all
28 SetTaskRunnerProviderForTesting(TaskRunnerProvider::Create( 28 SetTaskRunnerProviderForTesting(TaskRunnerProvider::Create(
29 base::ThreadTaskRunnerHandle::Get(), impl_task_runner)); 29 base::ThreadTaskRunnerHandle::Get(), impl_task_runner));
30 client_->SetLayerTreeHost(this); 30 client_->SetLayerTreeHost(this);
31 } 31 }
32 32
33 std::unique_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create( 33 std::unique_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
34 FakeLayerTreeHostClient* client, 34 FakeLayerTreeHostClient* client,
35 TestTaskGraphRunner* task_graph_runner) { 35 TestTaskGraphRunner* task_graph_runner) {
36 LayerTreeSettings settings; 36 LayerTreeSettings settings;
37 settings.verify_transform_tree_calculations = true; 37 settings.verify_transform_tree_calculations = true;
38 settings.verify_clip_tree_calculations = true;
38 return Create(client, task_graph_runner, settings); 39 return Create(client, task_graph_runner, settings);
39 } 40 }
40 41
41 std::unique_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create( 42 std::unique_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
42 FakeLayerTreeHostClient* client, 43 FakeLayerTreeHostClient* client,
43 TestTaskGraphRunner* task_graph_runner, 44 TestTaskGraphRunner* task_graph_runner,
44 const LayerTreeSettings& settings) { 45 const LayerTreeSettings& settings) {
45 return Create(client, task_graph_runner, settings, 46 return Create(client, task_graph_runner, settings,
46 CompositorMode::SINGLE_THREADED); 47 CompositorMode::SINGLE_THREADED);
47 } 48 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 pending_tree()->SetPropertyTrees(property_trees()); 114 pending_tree()->SetPropertyTrees(property_trees());
114 TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(), 115 TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
115 pending_tree()); 116 pending_tree());
116 animation_host()->PushPropertiesTo(host_impl_.animation_host()); 117 animation_host()->PushPropertiesTo(host_impl_.animation_host());
117 118
118 pending_tree()->UpdatePropertyTreeScrollOffset(property_trees()); 119 pending_tree()->UpdatePropertyTreeScrollOffset(property_trees());
119 return pending_tree()->root_layer_for_testing(); 120 return pending_tree()->root_layer_for_testing();
120 } 121 }
121 122
122 } // namespace cc 123 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698