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

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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 | Annotate | Revision Log
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 "web_layer_tree_view_impl.h" 5 #include "web_layer_tree_view_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 asciiToRectTable[i] = asciiToWebRectTable[i]; 204 asciiToRectTable[i] = asciiToWebRectTable[i];
205 205
206 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass(); 206 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass();
207 } 207 }
208 208
209 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes) 209 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes)
210 { 210 {
211 m_layerTreeHost->loseOutputSurface(numTimes); 211 m_layerTreeHost->loseOutputSurface(numTimes);
212 } 212 }
213 213
214 void WebLayerTreeViewImpl::setLatencyInfo(const WebKit::WebLatencyInfo& latencyI nfo)
215 {
216 m_layerTreeHost->setLatencyInfo(static_cast<const WebKit::WebLatencyInfoImpl &>(latencyInfo));
217 }
218
214 void WebLayerTreeViewImpl::willBeginFrame() 219 void WebLayerTreeViewImpl::willBeginFrame()
215 { 220 {
216 m_client->willBeginFrame(); 221 m_client->willBeginFrame();
217 } 222 }
218 223
219 void WebLayerTreeViewImpl::didBeginFrame() 224 void WebLayerTreeViewImpl::didBeginFrame()
220 { 225 {
221 m_client->didBeginFrame(); 226 m_client->didBeginFrame();
222 } 227 }
223 228
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 void WebLayerTreeViewImpl::didCompleteSwapBuffers() 279 void WebLayerTreeViewImpl::didCompleteSwapBuffers()
275 { 280 {
276 m_client->didCompleteSwapBuffers(); 281 m_client->didCompleteSwapBuffers();
277 } 282 }
278 283
279 void WebLayerTreeViewImpl::scheduleComposite() 284 void WebLayerTreeViewImpl::scheduleComposite()
280 { 285 {
281 m_client->scheduleComposite(); 286 m_client->scheduleComposite();
282 } 287 }
283 288
289 void WebLayerTreeViewImpl::onReceivedLatencyInfo(const WebKit::WebLatencyInfoImp l& latencyInfo)
290 {
291 m_client->onReceivedLatencyInfo(static_cast<const WebKit::WebLatencyInfo&>(l atencyInfo));
292 }
293
284 } // namespace WebKit 294 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698