| 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 "cc/font_atlas.h" | 8 #include "cc/font_atlas.h" |
| 9 #include "cc/input_handler.h" | 9 #include "cc/input_handler.h" |
| 10 #include "cc/layer.h" | 10 #include "cc/layer.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 { | 149 { |
| 150 m_layerTreeHost->composite(); | 150 m_layerTreeHost->composite(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void WebLayerTreeViewImpl::updateAnimations(double frameBeginTimeSeconds) | 153 void WebLayerTreeViewImpl::updateAnimations(double frameBeginTimeSeconds) |
| 154 { | 154 { |
| 155 base::TimeTicks frameBeginTime = base::TimeTicks::FromInternalValue(frameBeg
inTimeSeconds * base::Time::kMicrosecondsPerSecond); | 155 base::TimeTicks frameBeginTime = base::TimeTicks::FromInternalValue(frameBeg
inTimeSeconds * base::Time::kMicrosecondsPerSecond); |
| 156 m_layerTreeHost->updateAnimations(frameBeginTime); | 156 m_layerTreeHost->updateAnimations(frameBeginTime); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void WebLayerTreeViewImpl::didStopFlinging() |
| 160 { |
| 161 m_layerTreeHost->didStopFlinging(); |
| 162 } |
| 163 |
| 159 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) | 164 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) |
| 160 { | 165 { |
| 161 return m_layerTreeHost->compositeAndReadback(pixels, rect); | 166 return m_layerTreeHost->compositeAndReadback(pixels, rect); |
| 162 } | 167 } |
| 163 | 168 |
| 164 void WebLayerTreeViewImpl::finishAllRendering() | 169 void WebLayerTreeViewImpl::finishAllRendering() |
| 165 { | 170 { |
| 166 m_layerTreeHost->finishAllRendering(); | 171 m_layerTreeHost->finishAllRendering(); |
| 167 } | 172 } |
| 168 | 173 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 { | 280 { |
| 276 m_client->didCompleteSwapBuffers(); | 281 m_client->didCompleteSwapBuffers(); |
| 277 } | 282 } |
| 278 | 283 |
| 279 void WebLayerTreeViewImpl::scheduleComposite() | 284 void WebLayerTreeViewImpl::scheduleComposite() |
| 280 { | 285 { |
| 281 m_client->scheduleComposite(); | 286 m_client->scheduleComposite(); |
| 282 } | 287 } |
| 283 | 288 |
| 284 } // namespace WebKit | 289 } // namespace WebKit |
| OLD | NEW |