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

Side by Side Diff: cc/single_thread_proxy.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/single_thread_proxy.h ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/single_thread_proxy.h" 5 #include "cc/single_thread_proxy.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/draw_quad.h" 8 #include "cc/draw_quad.h"
9 #include "cc/layer_tree_host.h" 9 #include "cc/layer_tree_host.h"
10 #include "cc/output_surface.h" 10 #include "cc/output_surface.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 if (m_rendererInitialized) 327 if (m_rendererInitialized)
328 m_layerTreeHostImpl->renderer()->doNoOp(); 328 m_layerTreeHostImpl->renderer()->doNoOp();
329 } 329 }
330 } 330 }
331 331
332 void SingleThreadProxy::onSwapBuffersCompleteOnImplThread() 332 void SingleThreadProxy::onSwapBuffersCompleteOnImplThread()
333 { 333 {
334 NOTREACHED(); 334 NOTREACHED();
335 } 335 }
336 336
337 void SingleThreadProxy::onReceivedLatencyInfo(const LatencyInfo& latencyInfo)
338 {
339 m_layerTreeHost->onReceivedLatencyInfo(latencyInfo);
340 }
341
337 bool SingleThreadProxy::commitAndComposite() 342 bool SingleThreadProxy::commitAndComposite()
338 { 343 {
339 DCHECK(Proxy::isMainThread()); 344 DCHECK(Proxy::isMainThread());
340 345
341 if (!m_layerTreeHost->initializeRendererIfNeeded()) 346 if (!m_layerTreeHost->initializeRendererIfNeeded())
342 return false; 347 return false;
343 348
344 m_layerTreeHost->contentsTextureManager()->unlinkAndClearEvictedBackings(); 349 m_layerTreeHost->contentsTextureManager()->unlinkAndClearEvictedBackings();
345 350
346 scoped_ptr<ResourceUpdateQueue> queue = make_scoped_ptr(new ResourceUpdateQu eue); 351 scoped_ptr<ResourceUpdateQueue> queue = make_scoped_ptr(new ResourceUpdateQu eue);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 m_layerTreeHost->didCommitAndDrawFrame(); 403 m_layerTreeHost->didCommitAndDrawFrame();
399 } 404 }
400 } 405 }
401 406
402 bool SingleThreadProxy::commitPendingForTesting() 407 bool SingleThreadProxy::commitPendingForTesting()
403 { 408 {
404 return false; 409 return false;
405 } 410 }
406 411
407 } // namespace cc 412 } // namespace cc
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.h ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698