Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: webkit/compositor_bindings/WebLayerTreeViewImpl.cpp

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use uint64_t and rename variables to *Count Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void WebLayerTreeViewImpl::finishAllRendering() 163 void WebLayerTreeViewImpl::finishAllRendering()
164 { 164 {
165 m_layerTreeHost->finishAllRendering(); 165 m_layerTreeHost->finishAllRendering();
166 } 166 }
167 167
168 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const 168 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const
169 { 169 {
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.compositorSyncCount = ccStats.compositorSyncCount;
174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; 174 stats.compositorSyncActiveCount = ccStats.compositorSyncActiveCount;
175 stats.compositorFrameCount = ccStats.compositorFrameCount;
176 stats.mainAnimationFrameCount = ccStats.mainAnimationFrameCount;
177 stats.implAnimationFrameCount = ccStats.implAnimationFrameCount;
175 stats.droppedFrameCount = ccStats.droppedFrameCount; 178 stats.droppedFrameCount = ccStats.droppedFrameCount;
176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; 179 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds;
177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; 180 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds;
178 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds; 181 stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds;
179 stats.totalCommitCount = ccStats.totalCommitCount; 182 stats.totalCommitCount = ccStats.totalCommitCount;
180 stats.numImplThreadScrolls = ccStats.numImplThreadScrolls; 183 stats.implThreadScrollCount = ccStats.implThreadScrollCount;
181 stats.numMainThreadScrolls = ccStats.numMainThreadScrolls; 184 stats.mainThreadScrollCount = ccStats.mainThreadScrollCount;
182 } 185 }
183 186
184 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT able[128], int fontHeight) 187 void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectT able[128], int fontHeight)
185 { 188 {
186 IntRect asciiToRectTable[128]; 189 IntRect asciiToRectTable[128];
187 for (int i = 0; i < 128; ++i) 190 for (int i = 0; i < 128; ++i)
188 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); 191 asciiToRectTable[i] = convert(asciiToWebRectTable[i]);
189 scoped_ptr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectT able, fontHeight); 192 scoped_ptr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectT able, fontHeight);
190 m_layerTreeHost->setFontAtlas(fontAtlas.Pass()); 193 m_layerTreeHost->setFontAtlas(fontAtlas.Pass());
191 } 194 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 { 260 {
258 m_client->didCompleteSwapBuffers(); 261 m_client->didCompleteSwapBuffers();
259 } 262 }
260 263
261 void WebLayerTreeViewImpl::scheduleComposite() 264 void WebLayerTreeViewImpl::scheduleComposite()
262 { 265 {
263 m_client->scheduleComposite(); 266 m_client->scheduleComposite();
264 } 267 }
265 268
266 } // namespace WebKit 269 } // namespace WebKit
OLDNEW
« cc/CCRenderingStats.h ('K') | « tools/perf/perf_tools/texture_upload_benchmark.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698