| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 RenderingStats ccStats; | 183 RenderingStats ccStats; |
| 184 m_layerTreeHost->renderingStats(&ccStats); | 184 m_layerTreeHost->renderingStats(&ccStats); |
| 185 | 185 |
| 186 stats.numAnimationFrames = ccStats.numAnimationFrames; | 186 stats.numAnimationFrames = ccStats.numAnimationFrames; |
| 187 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 187 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
| 188 stats.droppedFrameCount = ccStats.droppedFrameCount; | 188 stats.droppedFrameCount = ccStats.droppedFrameCount; |
| 189 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 189 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
| 190 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 190 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
| 191 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; | 191 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; |
| 192 stats.totalCommitCount = ccStats.totalCommitCount; | 192 stats.totalCommitCount = ccStats.totalCommitCount; |
| 193 stats.totalPixelsPainted = ccStats.totalPixelsPainted; |
| 194 stats.totalPixelsRasterized = ccStats.totalPixelsRasterized; |
| 193 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; | 195 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; |
| 194 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; | 196 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; |
| 195 } | 197 } |
| 196 | 198 |
| 197 void WebLayerTreeViewImpl::setShowFPSCounter(bool show) | 199 void WebLayerTreeViewImpl::setShowFPSCounter(bool show) |
| 198 { | 200 { |
| 199 m_layerTreeHost->setShowFPSCounter(show); | 201 m_layerTreeHost->setShowFPSCounter(show); |
| 200 } | 202 } |
| 201 | 203 |
| 202 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { | 204 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 { | 282 { |
| 281 m_client->didCompleteSwapBuffers(); | 283 m_client->didCompleteSwapBuffers(); |
| 282 } | 284 } |
| 283 | 285 |
| 284 void WebLayerTreeViewImpl::scheduleComposite() | 286 void WebLayerTreeViewImpl::scheduleComposite() |
| 285 { | 287 { |
| 286 m_client->scheduleComposite(); | 288 m_client->scheduleComposite(); |
| 287 } | 289 } |
| 288 | 290 |
| 289 } // namespace WebKit | 291 } // namespace WebKit |
| OLD | NEW |