| OLD | NEW |
| 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 "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded( | 46 layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded( |
| 47 this, | 47 this, |
| 48 this, | 48 this, |
| 49 nullptr, | 49 nullptr, |
| 50 nullptr, | 50 nullptr, |
| 51 settings, | 51 settings, |
| 52 base::MessageLoopProxy::current(), | 52 base::MessageLoopProxy::current(), |
| 53 nullptr, |
| 53 nullptr); | 54 nullptr); |
| 54 DCHECK(layer_tree_host_); | 55 DCHECK(layer_tree_host_); |
| 55 } | 56 } |
| 56 | 57 |
| 57 void WebLayerTreeViewImplForTesting::setRootLayer( | 58 void WebLayerTreeViewImplForTesting::setRootLayer( |
| 58 const blink::WebLayer& root) { | 59 const blink::WebLayer& root) { |
| 59 layer_tree_host_->SetRootLayer( | 60 layer_tree_host_->SetRootLayer( |
| 60 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer()); | 61 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer()); |
| 61 } | 62 } |
| 62 | 63 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 197 |
| 197 void WebLayerTreeViewImplForTesting::registerSelection( | 198 void WebLayerTreeViewImplForTesting::registerSelection( |
| 198 const blink::WebSelectionBound& start, | 199 const blink::WebSelectionBound& start, |
| 199 const blink::WebSelectionBound& end) { | 200 const blink::WebSelectionBound& end) { |
| 200 } | 201 } |
| 201 | 202 |
| 202 void WebLayerTreeViewImplForTesting::clearSelection() { | 203 void WebLayerTreeViewImplForTesting::clearSelection() { |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace content | 206 } // namespace content |
| OLD | NEW |