| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "web_layer_tree_view_impl.h" | 5 #include "web_layer_tree_view_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "cc/font_atlas.h" | 9 #include "cc/font_atlas.h" |
| 10 #include "cc/input_handler.h" | 10 #include "cc/input_handler.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 void WebLayerTreeViewImpl::animate(double monotonicFrameBeginTime) | 248 void WebLayerTreeViewImpl::animate(double monotonicFrameBeginTime) |
| 249 { | 249 { |
| 250 m_client->updateAnimations(monotonicFrameBeginTime); | 250 m_client->updateAnimations(monotonicFrameBeginTime); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void WebLayerTreeViewImpl::layout() | 253 void WebLayerTreeViewImpl::layout() |
| 254 { | 254 { |
| 255 m_client->layout(); | 255 m_client->layout(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void WebLayerTreeViewImpl::applyScrollAndScale(gfx::Vector2d scrollDelta, float
pageScale) | 258 void WebLayerTreeViewImpl::applyScrollAndScale(gfx::Vector2d scrollDelta, float
pageScale, gfx::Vector2d desktopCompatibilityViewportOffsetFromScrollPositionDel
ta) |
| 259 { | 259 { |
| 260 m_client->applyScrollAndScale(scrollDelta, pageScale); | 260 m_client->applyScrollAndScale(scrollDelta, pageScale, desktopCompatibilityVi
ewportOffsetFromScrollPositionDelta); |
| 261 } | 261 } |
| 262 | 262 |
| 263 scoped_ptr<cc::OutputSurface> WebLayerTreeViewImpl::createOutputSurface() | 263 scoped_ptr<cc::OutputSurface> WebLayerTreeViewImpl::createOutputSurface() |
| 264 { | 264 { |
| 265 WebKit::WebCompositorOutputSurface* web = m_client->createOutputSurface(); | 265 WebKit::WebCompositorOutputSurface* web = m_client->createOutputSurface(); |
| 266 return make_scoped_ptr(static_cast<cc::OutputSurface*>(web)); | 266 return make_scoped_ptr(static_cast<cc::OutputSurface*>(web)); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void WebLayerTreeViewImpl::didRecreateOutputSurface(bool success) | 269 void WebLayerTreeViewImpl::didRecreateOutputSurface(bool success) |
| 270 { | 270 { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 299 { | 299 { |
| 300 m_client->didCompleteSwapBuffers(); | 300 m_client->didCompleteSwapBuffers(); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void WebLayerTreeViewImpl::scheduleComposite() | 303 void WebLayerTreeViewImpl::scheduleComposite() |
| 304 { | 304 { |
| 305 m_client->scheduleComposite(); | 305 m_client->scheduleComposite(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 } // namespace WebKit | 308 } // namespace WebKit |
| OLD | NEW |