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

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 1177033008: cc: Turn impl_side_painting and use_one_copy on in LayerTreeSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implon: fixwebkittests Created 5 years, 6 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 | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | no next file » | 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 "content/test/web_layer_tree_view_impl_for_testing.h" 5 #include "content/test/web_layer_tree_view_impl_for_testing.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 29 matching lines...) Expand all
40 // For web contents, layer transforms should scale up the contents of layers 40 // For web contents, layer transforms should scale up the contents of layers
41 // to keep content always crisp when possible. 41 // to keep content always crisp when possible.
42 settings.layer_transforms_should_scale_layer_contents = true; 42 settings.layer_transforms_should_scale_layer_contents = true;
43 43
44 // Accelerated animations are enabled for unit tests. 44 // Accelerated animations are enabled for unit tests.
45 settings.accelerated_animation_enabled = true; 45 settings.accelerated_animation_enabled = true;
46 cc::LayerTreeHost::InitParams params; 46 cc::LayerTreeHost::InitParams params;
47 params.client = this; 47 params.client = this;
48 params.settings = &settings; 48 params.settings = &settings;
49 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); 49 params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
50 params.task_graph_runner = &task_graph_runner_;
50 layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(this, &params); 51 layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(this, &params);
51 DCHECK(layer_tree_host_); 52 DCHECK(layer_tree_host_);
52 } 53 }
53 54
54 void WebLayerTreeViewImplForTesting::setRootLayer( 55 void WebLayerTreeViewImplForTesting::setRootLayer(
55 const blink::WebLayer& root) { 56 const blink::WebLayer& root) {
56 layer_tree_host_->SetRootLayer( 57 layer_tree_host_->SetRootLayer(
57 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer()); 58 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer());
58 } 59 }
59 60
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 194 }
194 195
195 void WebLayerTreeViewImplForTesting::registerSelection( 196 void WebLayerTreeViewImplForTesting::registerSelection(
196 const blink::WebSelection& selection) { 197 const blink::WebSelection& selection) {
197 } 198 }
198 199
199 void WebLayerTreeViewImplForTesting::clearSelection() { 200 void WebLayerTreeViewImplForTesting::clearSelection() {
200 } 201 }
201 202
202 } // namespace content 203 } // namespace content
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698