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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 137 } |
138 | 138 |
139 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { | 139 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { |
140 layer_tree_host_->SetDeferCommits(defer_commits); | 140 layer_tree_host_->SetDeferCommits(defer_commits); |
141 } | 141 } |
142 | 142 |
143 void WebLayerTreeViewImplForTesting::Layout() { | 143 void WebLayerTreeViewImplForTesting::Layout() { |
144 } | 144 } |
145 | 145 |
146 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale( | 146 void WebLayerTreeViewImplForTesting::ApplyScrollAndScale( |
147 gfx::Vector2d scroll_delta, | 147 const gfx::Vector2d& scroll_delta, |
148 float page_scale) {} | 148 float page_scale) {} |
149 | 149 |
150 scoped_ptr<cc::OutputSurface> | 150 scoped_ptr<cc::OutputSurface> |
151 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) { | 151 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) { |
152 return make_scoped_ptr( | 152 return make_scoped_ptr( |
153 new cc::OutputSurface(cc::TestContextProvider::Create())); | 153 new cc::OutputSurface(cc::TestContextProvider::Create())); |
154 } | 154 } |
155 | 155 |
156 scoped_refptr<cc::ContextProvider> | 156 scoped_refptr<cc::ContextProvider> |
157 WebLayerTreeViewImplForTesting::OffscreenContextProvider() { | 157 WebLayerTreeViewImplForTesting::OffscreenContextProvider() { |
(...skipping 16 matching lines...) Expand all Loading... |
174 : NULL); | 174 : NULL); |
175 } | 175 } |
176 | 176 |
177 void WebLayerTreeViewImplForTesting::clearViewportLayers() { | 177 void WebLayerTreeViewImplForTesting::clearViewportLayers() { |
178 layer_tree_host_->RegisterViewportLayers(scoped_refptr<cc::Layer>(), | 178 layer_tree_host_->RegisterViewportLayers(scoped_refptr<cc::Layer>(), |
179 scoped_refptr<cc::Layer>(), | 179 scoped_refptr<cc::Layer>(), |
180 scoped_refptr<cc::Layer>()); | 180 scoped_refptr<cc::Layer>()); |
181 } | 181 } |
182 | 182 |
183 } // namespace webkit | 183 } // namespace webkit |
OLD | NEW |