| 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 "config.h" | 5 #include "config.h" |
| 6 #include "web_layer_tree_view_impl.h" | 6 #include "web_layer_tree_view_impl.h" |
| 7 | 7 |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 void WebLayerTreeViewImpl::updateAnimations(double frameBeginTimeSeconds) | 163 void WebLayerTreeViewImpl::updateAnimations(double frameBeginTimeSeconds) |
| 164 { | 164 { |
| 165 base::TimeTicks frameBeginTime = base::TimeTicks::FromInternalValue(frameBeg
inTimeSeconds * base::Time::kMicrosecondsPerSecond); | 165 base::TimeTicks frameBeginTime = base::TimeTicks::FromInternalValue(frameBeg
inTimeSeconds * base::Time::kMicrosecondsPerSecond); |
| 166 m_layerTreeHost->updateAnimations(frameBeginTime); | 166 m_layerTreeHost->updateAnimations(frameBeginTime); |
| 167 } | 167 } |
| 168 | 168 |
| 169 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) | 169 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) |
| 170 { | 170 { |
| 171 return m_layerTreeHost->compositeAndReadback(pixels, convert(rect)); | 171 return m_layerTreeHost->compositeAndReadback(pixels, rect); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void WebLayerTreeViewImpl::finishAllRendering() | 174 void WebLayerTreeViewImpl::finishAllRendering() |
| 175 { | 175 { |
| 176 m_layerTreeHost->finishAllRendering(); | 176 m_layerTreeHost->finishAllRendering(); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits) | 179 void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits) |
| 180 { | 180 { |
| 181 m_layerTreeHost->setDeferCommits(deferCommits); | 181 m_layerTreeHost->setDeferCommits(deferCommits); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 { | 274 { |
| 275 m_client->didCompleteSwapBuffers(); | 275 m_client->didCompleteSwapBuffers(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 void WebLayerTreeViewImpl::scheduleComposite() | 278 void WebLayerTreeViewImpl::scheduleComposite() |
| 279 { | 279 { |
| 280 m_client->scheduleComposite(); | 280 m_client->scheduleComposite(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace WebKit | 283 } // namespace WebKit |
| OLD | NEW |