Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 12045002: Delete zoomed_viewport_offset_ and its users. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 WebSize WebLayerTreeViewImpl::layoutViewportSize() const 99 WebSize WebLayerTreeViewImpl::layoutViewportSize() const
100 { 100 {
101 return m_layerTreeHost->layoutViewportSize(); 101 return m_layerTreeHost->layoutViewportSize();
102 } 102 }
103 103
104 WebSize WebLayerTreeViewImpl::deviceViewportSize() const 104 WebSize WebLayerTreeViewImpl::deviceViewportSize() const
105 { 105 {
106 return m_layerTreeHost->deviceViewportSize(); 106 return m_layerTreeHost->deviceViewportSize();
107 } 107 }
108 108
109 WebFloatPoint WebLayerTreeViewImpl::adjustEventPointForPinchZoom(const WebFloatP oint& point) const
110 {
111 return m_layerTreeHost->adjustEventPointForPinchZoom(point);
112 }
113
114 void WebLayerTreeViewImpl::setDeviceScaleFactor(const float deviceScaleFactor) 109 void WebLayerTreeViewImpl::setDeviceScaleFactor(const float deviceScaleFactor)
115 { 110 {
116 m_layerTreeHost->setDeviceScaleFactor(deviceScaleFactor); 111 m_layerTreeHost->setDeviceScaleFactor(deviceScaleFactor);
117 } 112 }
118 113
119 float WebLayerTreeViewImpl::deviceScaleFactor() const 114 float WebLayerTreeViewImpl::deviceScaleFactor() const
120 { 115 {
121 return m_layerTreeHost->deviceScaleFactor(); 116 return m_layerTreeHost->deviceScaleFactor();
122 } 117 }
123 118
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 { 294 {
300 m_client->didCompleteSwapBuffers(); 295 m_client->didCompleteSwapBuffers();
301 } 296 }
302 297
303 void WebLayerTreeViewImpl::scheduleComposite() 298 void WebLayerTreeViewImpl::scheduleComposite()
304 { 299 {
305 m_client->scheduleComposite(); 300 m_client->scheduleComposite();
306 } 301 }
307 302
308 } // namespace WebKit 303 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698