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

Unified Diff: cc/single_thread_proxy.h

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: cc/single_thread_proxy.h
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index 6b948f464e5b72735802b31dccd1ebdfc9be6b27..cc9c0d483419bd56a2732706d7bdb2ecd6012cd5 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -75,15 +75,16 @@ class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
virtual void renewTreePriority() OVERRIDE {}
// Called by the legacy path where RenderWidget does the scheduling.
- void CompositeImmediately();
+ void CompositeImmediately(base::TimeTicks frame_begin_time);
private:
explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
- bool CommitAndComposite();
+ bool CommitAndComposite(base::TimeTicks frame_begin_time);
void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
bool DoComposite(
- scoped_refptr<cc::ContextProvider> offscreen_context_provider);
+ scoped_refptr<cc::ContextProvider> offscreen_context_provider,
+ base::TimeTicks frame_begin_time);
void DidSwapFrame();
// Accessed on main thread only.

Powered by Google App Engine
This is Rietveld 408576698