| 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 "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( | 121 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( |
| 122 const gfx::Vector2dF& inner_delta, | 122 const gfx::Vector2dF& inner_delta, |
| 123 const gfx::Vector2dF& outer_delta, | 123 const gfx::Vector2dF& outer_delta, |
| 124 const gfx::Vector2dF& elastic_overscroll_delta, | 124 const gfx::Vector2dF& elastic_overscroll_delta, |
| 125 float page_scale, | 125 float page_scale, |
| 126 float top_controls_delta) { | 126 float top_controls_delta) { |
| 127 } | 127 } |
| 128 | 128 |
| 129 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface() { | 129 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface() { |
| 130 bool flipped_output_surface = false; | 130 // TODO(crbug.com/540026): Fix crashes with real OutputSurface |
| 131 layer_tree_host_->SetOutputSurface( | 131 // bool flipped_output_surface = false; |
| 132 make_scoped_ptr(new cc::PixelTestOutputSurface( | 132 // layer_tree_host_->SetOutputSurface( |
| 133 cc::TestContextProvider::Create(), flipped_output_surface))); | 133 // make_scoped_ptr(new cc::PixelTestOutputSurface( |
| 134 // cc::TestContextProvider::Create(), flipped_output_surface))); |
| 134 } | 135 } |
| 135 | 136 |
| 136 void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() { | 137 void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() { |
| 137 RequestNewOutputSurface(); | 138 RequestNewOutputSurface(); |
| 138 } | 139 } |
| 139 | 140 |
| 140 void WebLayerTreeViewImplForTesting::registerForAnimations( | 141 void WebLayerTreeViewImplForTesting::registerForAnimations( |
| 141 blink::WebLayer* layer) { | 142 blink::WebLayer* layer) { |
| 142 cc::Layer* cc_layer = static_cast<cc_blink::WebLayerImpl*>(layer)->layer(); | 143 cc::Layer* cc_layer = static_cast<cc_blink::WebLayerImpl*>(layer)->layer(); |
| 143 cc_layer->RegisterForAnimations(layer_tree_host_->animation_registrar()); | 144 cc_layer->RegisterForAnimations(layer_tree_host_->animation_registrar()); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 174 } | 175 } |
| 175 | 176 |
| 176 void WebLayerTreeViewImplForTesting::registerSelection( | 177 void WebLayerTreeViewImplForTesting::registerSelection( |
| 177 const blink::WebSelection& selection) { | 178 const blink::WebSelection& selection) { |
| 178 } | 179 } |
| 179 | 180 |
| 180 void WebLayerTreeViewImplForTesting::clearSelection() { | 181 void WebLayerTreeViewImplForTesting::clearSelection() { |
| 181 } | 182 } |
| 182 | 183 |
| 183 } // namespace content | 184 } // namespace content |
| OLD | NEW |