| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 DCHECK(layer_tree_host_); | 54 DCHECK(layer_tree_host_); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void WebLayerTreeViewImplForTesting::setSurfaceReady() { | |
| 58 layer_tree_host_->SetLayerTreeHostClientReady(); | |
| 59 } | |
| 60 | |
| 61 void WebLayerTreeViewImplForTesting::setRootLayer( | 57 void WebLayerTreeViewImplForTesting::setRootLayer( |
| 62 const blink::WebLayer& root) { | 58 const blink::WebLayer& root) { |
| 63 layer_tree_host_->SetRootLayer( | 59 layer_tree_host_->SetRootLayer( |
| 64 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer()); | 60 static_cast<const cc_blink::WebLayerImpl*>(&root)->layer()); |
| 65 } | 61 } |
| 66 | 62 |
| 67 void WebLayerTreeViewImplForTesting::clearRootLayer() { | 63 void WebLayerTreeViewImplForTesting::clearRootLayer() { |
| 68 layer_tree_host_->SetRootLayer(scoped_refptr<cc::Layer>()); | 64 layer_tree_host_->SetRootLayer(scoped_refptr<cc::Layer>()); |
| 69 } | 65 } |
| 70 | 66 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 196 |
| 201 void WebLayerTreeViewImplForTesting::registerSelection( | 197 void WebLayerTreeViewImplForTesting::registerSelection( |
| 202 const blink::WebSelectionBound& start, | 198 const blink::WebSelectionBound& start, |
| 203 const blink::WebSelectionBound& end) { | 199 const blink::WebSelectionBound& end) { |
| 204 } | 200 } |
| 205 | 201 |
| 206 void WebLayerTreeViewImplForTesting::clearSelection() { | 202 void WebLayerTreeViewImplForTesting::clearSelection() { |
| 207 } | 203 } |
| 208 | 204 |
| 209 } // namespace content | 205 } // namespace content |
| OLD | NEW |