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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 RenderingStats ccStats; | 181 RenderingStats ccStats; |
182 m_layerTreeHost->renderingStats(&ccStats); | 182 m_layerTreeHost->renderingStats(&ccStats); |
183 | 183 |
184 stats.numAnimationFrames = ccStats.numAnimationFrames; | 184 stats.numAnimationFrames = ccStats.numAnimationFrames; |
185 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 185 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
186 stats.droppedFrameCount = ccStats.droppedFrameCount; | 186 stats.droppedFrameCount = ccStats.droppedFrameCount; |
187 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 187 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
188 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 188 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
189 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; | 189 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; |
190 stats.totalCommitCount = ccStats.totalCommitCount; | 190 stats.totalCommitCount = ccStats.totalCommitCount; |
| 191 stats.totalPixelsPainted = ccStats.totalPixelsPainted; |
| 192 stats.totalPixelsRasterized = ccStats.totalPixelsRasterized; |
191 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; | 193 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; |
192 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; | 194 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; |
193 } | 195 } |
194 | 196 |
195 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { | 197 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) { |
196 setFontAtlas(asciiToWebRectTable, bitmap, fontHeight); | 198 setFontAtlas(asciiToWebRectTable, bitmap, fontHeight); |
197 } | 199 } |
198 | 200 |
199 void WebLayerTreeViewImpl::setFontAtlas(WebRect asciiToWebRectTable[128], const
SkBitmap& bitmap, int fontHeight) | 201 void WebLayerTreeViewImpl::setFontAtlas(WebRect asciiToWebRectTable[128], const
SkBitmap& bitmap, int fontHeight) |
200 { | 202 { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 { | 275 { |
274 m_client->didCompleteSwapBuffers(); | 276 m_client->didCompleteSwapBuffers(); |
275 } | 277 } |
276 | 278 |
277 void WebLayerTreeViewImpl::scheduleComposite() | 279 void WebLayerTreeViewImpl::scheduleComposite() |
278 { | 280 { |
279 m_client->scheduleComposite(); | 281 m_client->scheduleComposite(); |
280 } | 282 } |
281 | 283 |
282 } // namespace WebKit | 284 } // namespace WebKit |
OLD | NEW |