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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 RenderingStats ccStats; | 177 RenderingStats ccStats; |
178 m_layerTreeHost->renderingStats(&ccStats); | 178 m_layerTreeHost->renderingStats(&ccStats); |
179 | 179 |
180 stats.numAnimationFrames = ccStats.numAnimationFrames; | 180 stats.numAnimationFrames = ccStats.numAnimationFrames; |
181 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 181 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
182 stats.droppedFrameCount = ccStats.droppedFrameCount; | 182 stats.droppedFrameCount = ccStats.droppedFrameCount; |
183 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 183 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
184 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 184 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
185 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; | 185 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; |
186 stats.totalCommitCount = ccStats.totalCommitCount; | 186 stats.totalCommitCount = ccStats.totalCommitCount; |
| 187 stats.totalPixelsPainted = ccStats.totalPixelsPainted; |
| 188 stats.totalPixelsRasterized = ccStats.totalPixelsRasterized; |
187 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; | 189 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; |
188 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; | 190 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; |
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) |
192 { | 194 { |
193 IntRect asciiToRectTable[128]; | 195 IntRect asciiToRectTable[128]; |
194 for (int i = 0; i < 128; ++i) | 196 for (int i = 0; i < 128; ++i) |
195 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); | 197 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); |
196 scoped_ptr<FontAtlas> fontAtlas = FontAtlas::create(bitmap, asciiToRectTable
, fontHeight); | 198 scoped_ptr<FontAtlas> fontAtlas = FontAtlas::create(bitmap, asciiToRectTable
, fontHeight); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 { | 267 { |
266 m_client->didCompleteSwapBuffers(); | 268 m_client->didCompleteSwapBuffers(); |
267 } | 269 } |
268 | 270 |
269 void WebLayerTreeViewImpl::scheduleComposite() | 271 void WebLayerTreeViewImpl::scheduleComposite() |
270 { | 272 { |
271 m_client->scheduleComposite(); | 273 m_client->scheduleComposite(); |
272 } | 274 } |
273 | 275 |
274 } // namespace WebKit | 276 } // namespace WebKit |
OLD | NEW |