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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 RenderingStats ccStats; | 172 RenderingStats ccStats; |
173 m_layerTreeHost->renderingStats(&ccStats); | 173 m_layerTreeHost->renderingStats(&ccStats); |
174 | 174 |
175 stats.numAnimationFrames = ccStats.numAnimationFrames; | 175 stats.numAnimationFrames = ccStats.numAnimationFrames; |
176 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 176 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
177 stats.droppedFrameCount = ccStats.droppedFrameCount; | 177 stats.droppedFrameCount = ccStats.droppedFrameCount; |
178 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 178 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
179 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 179 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
180 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; | 180 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; |
181 stats.totalCommitCount = ccStats.totalCommitCount; | 181 stats.totalCommitCount = ccStats.totalCommitCount; |
| 182 stats.totalPixelsPainted = ccStats.totalPixelsPainted; |
| 183 stats.totalPixelsRasterized = ccStats.totalPixelsRasterized; |
182 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; | 184 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; |
183 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; | 185 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; |
184 } | 186 } |
185 | 187 |
186 void WebLayerTreeViewImpl::setShowFPSCounter(bool show) | 188 void WebLayerTreeViewImpl::setShowFPSCounter(bool show) |
187 { | 189 { |
188 m_layerTreeHost->setShowFPSCounter(show); | 190 m_layerTreeHost->setShowFPSCounter(show); |
189 } | 191 } |
190 | 192 |
191 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { | 193 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 { | 271 { |
270 m_client->didCompleteSwapBuffers(); | 272 m_client->didCompleteSwapBuffers(); |
271 } | 273 } |
272 | 274 |
273 void WebLayerTreeViewImpl::scheduleComposite() | 275 void WebLayerTreeViewImpl::scheduleComposite() |
274 { | 276 { |
275 m_client->scheduleComposite(); | 277 m_client->scheduleComposite(); |
276 } | 278 } |
277 | 279 |
278 } // namespace WebKit | 280 } // namespace WebKit |
OLD | NEW |