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 |
168 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const | 173 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const |
169 { | 174 { |
170 RenderingStats ccStats; | 175 RenderingStats ccStats; |
171 m_layerTreeHost->renderingStats(&ccStats); | 176 m_layerTreeHost->renderingStats(&ccStats); |
172 | 177 |
173 stats.numAnimationFrames = ccStats.numAnimationFrames; | 178 stats.numAnimationFrames = ccStats.numAnimationFrames; |
174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 179 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
175 stats.droppedFrameCount = ccStats.droppedFrameCount; | 180 stats.droppedFrameCount = ccStats.droppedFrameCount; |
176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 181 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 182 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 { | 263 { |
259 m_client->didCompleteSwapBuffers(); | 264 m_client->didCompleteSwapBuffers(); |
260 } | 265 } |
261 | 266 |
262 void WebLayerTreeViewImpl::scheduleComposite() | 267 void WebLayerTreeViewImpl::scheduleComposite() |
263 { | 268 { |
264 m_client->scheduleComposite(); | 269 m_client->scheduleComposite(); |
265 } | 270 } |
266 | 271 |
267 } // namespace WebKit | 272 } // namespace WebKit |
OLD | NEW |