| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 | 136 |
| 137 void WebLayerTreeViewImplForTesting::Layout() { | 137 void WebLayerTreeViewImplForTesting::Layout() { |
| 138 } | 138 } |
| 139 | 139 |
| 140 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( | 140 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( |
| 141 const gfx::Vector2d& scroll_delta, | 141 const gfx::Vector2d& scroll_delta, |
| 142 float page_scale, | 142 float page_scale, |
| 143 float top_controls_delta) {} | 143 float top_controls_delta) {} |
| 144 | 144 |
| 145 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface( | 145 scoped_ptr<cc::OutputSurface> |
| 146 bool fallback) { | 146 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) { |
| 147 layer_tree_host_->SetOutputSurface(make_scoped_ptr( | 147 return make_scoped_ptr( |
| 148 new cc::OutputSurface(cc::TestContextProvider::Create()))); | 148 new cc::OutputSurface(cc::TestContextProvider::Create())); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void WebLayerTreeViewImplForTesting::registerViewportLayers( | 151 void WebLayerTreeViewImplForTesting::registerViewportLayers( |
| 152 const blink::WebLayer* pageScaleLayer, | 152 const blink::WebLayer* pageScaleLayer, |
| 153 const blink::WebLayer* innerViewportScrollLayer, | 153 const blink::WebLayer* innerViewportScrollLayer, |
| 154 const blink::WebLayer* outerViewportScrollLayer) { | 154 const blink::WebLayer* outerViewportScrollLayer) { |
| 155 layer_tree_host_->RegisterViewportLayers( | 155 layer_tree_host_->RegisterViewportLayers( |
| 156 static_cast<const cc_blink::WebLayerImpl*>(pageScaleLayer)->layer(), | 156 static_cast<const cc_blink::WebLayerImpl*>(pageScaleLayer)->layer(), |
| 157 static_cast<const cc_blink::WebLayerImpl*>(innerViewportScrollLayer) | 157 static_cast<const cc_blink::WebLayerImpl*>(innerViewportScrollLayer) |
| 158 ->layer(), | 158 ->layer(), |
| (...skipping 12 matching lines...) Expand all Loading... |
| 171 | 171 |
| 172 void WebLayerTreeViewImplForTesting::registerSelection( | 172 void WebLayerTreeViewImplForTesting::registerSelection( |
| 173 const blink::WebSelectionBound& start, | 173 const blink::WebSelectionBound& start, |
| 174 const blink::WebSelectionBound& end) { | 174 const blink::WebSelectionBound& end) { |
| 175 } | 175 } |
| 176 | 176 |
| 177 void WebLayerTreeViewImplForTesting::clearSelection() { | 177 void WebLayerTreeViewImplForTesting::clearSelection() { |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace content | 180 } // namespace content |
| OLD | NEW |