| 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 "WebLayerTreeViewImpl.h" | 6 #include "WebLayerTreeViewImpl.h" |
| 7 | 7 |
| 8 #include "CCFontAtlas.h" | 8 #include "CCFontAtlas.h" |
| 9 #include "CCInputHandler.h" | 9 #include "CCInputHandler.h" |
| 10 #include "CCLayerTreeHost.h" | 10 #include "CCLayerTreeHost.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 CCRenderingStats ccStats; | 170 CCRenderingStats ccStats; |
| 171 m_layerTreeHost->renderingStats(&ccStats); | 171 m_layerTreeHost->renderingStats(&ccStats); |
| 172 | 172 |
| 173 stats.numAnimationFrames = ccStats.numAnimationFrames; | 173 stats.numAnimationFrames = ccStats.numAnimationFrames; |
| 174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; | 174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; |
| 175 stats.droppedFrameCount = ccStats.droppedFrameCount; | 175 stats.droppedFrameCount = ccStats.droppedFrameCount; |
| 176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; | 176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; |
| 177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; | 177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; |
| 178 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; | 178 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; |
| 179 stats.totalCommitCount = ccStats.totalCommitCount; | 179 stats.totalCommitCount = ccStats.totalCommitCount; |
| 180 stats.didImplThreadScroll = ccStats.didImplThreadScroll; |
| 180 } | 181 } |
| 181 | 182 |
| 182 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) | 183 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT
able[128], int fontHeight) |
| 183 { | 184 { |
| 184 IntRect asciiToRectTable[128]; | 185 IntRect asciiToRectTable[128]; |
| 185 for (int i = 0; i < 128; ++i) | 186 for (int i = 0; i < 128; ++i) |
| 186 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); | 187 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); |
| 187 OwnPtr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectTable
, fontHeight); | 188 OwnPtr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectTable
, fontHeight); |
| 188 m_layerTreeHost->setFontAtlas(fontAtlas.release()); | 189 m_layerTreeHost->setFontAtlas(fontAtlas.release()); |
| 189 } | 190 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 { | 256 { |
| 256 m_client->didCompleteSwapBuffers(); | 257 m_client->didCompleteSwapBuffers(); |
| 257 } | 258 } |
| 258 | 259 |
| 259 void WebLayerTreeViewImpl::scheduleComposite() | 260 void WebLayerTreeViewImpl::scheduleComposite() |
| 260 { | 261 { |
| 261 m_client->scheduleComposite(); | 262 m_client->scheduleComposite(); |
| 262 } | 263 } |
| 263 | 264 |
| 264 } // namespace WebKit | 265 } // namespace WebKit |
| OLD | NEW |