| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) | 158 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec
t) |
| 159 { | 159 { |
| 160 return m_layerTreeHost->compositeAndReadback(pixels, convert(rect)); | 160 return m_layerTreeHost->compositeAndReadback(pixels, convert(rect)); |
| 161 } | 161 } |
| 162 | 162 |
| 163 void WebLayerTreeViewImpl::finishAllRendering() | 163 void WebLayerTreeViewImpl::finishAllRendering() |
| 164 { | 164 { |
| 165 m_layerTreeHost->finishAllRendering(); | 165 m_layerTreeHost->finishAllRendering(); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits) |
| 169 { |
| 170 m_layerTreeHost->setDeferCommits(deferCommits); |
| 171 } |
| 172 |
| 173 bool WebLayerTreeViewImpl::deferCommits() const |
| 174 { |
| 175 return m_layerTreeHost->deferCommits(); |
| 176 } |
| 177 |
| 168 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const | 178 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const |
| 169 { | 179 { |
| 170 RenderingStats ccStats; | 180 RenderingStats ccStats; |
| 171 m_layerTreeHost->renderingStats(&ccStats); | 181 m_layerTreeHost->renderingStats(&ccStats); |
| 172 | 182 |
| 173 stats.numAnimationFrames = ccStats.numAnimationFrames; | 183 stats.numAnimationFrames = ccStats.numAnimationFrames; |
| 174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 184 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
| 175 stats.droppedFrameCount = ccStats.droppedFrameCount; | 185 stats.droppedFrameCount = ccStats.droppedFrameCount; |
| 176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 186 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
| 177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 187 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 { | 268 { |
| 259 m_client->didCompleteSwapBuffers(); | 269 m_client->didCompleteSwapBuffers(); |
| 260 } | 270 } |
| 261 | 271 |
| 262 void WebLayerTreeViewImpl::scheduleComposite() | 272 void WebLayerTreeViewImpl::scheduleComposite() |
| 263 { | 273 { |
| 264 m_client->scheduleComposite(); | 274 m_client->scheduleComposite(); |
| 265 } | 275 } |
| 266 | 276 |
| 267 } // namespace WebKit | 277 } // namespace WebKit |
| OLD | NEW |