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

Side by Side Diff: cc/single_thread_proxy.h

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/output_surface_client.h ('k') | cc/single_thread_proxy.cc » ('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 #ifndef CC_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_SINGLE_THREAD_PROXY_H_
6 #define CC_SINGLE_THREAD_PROXY_H_ 6 #define CC_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; 52 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE;
53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE { } 53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE { }
54 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } 54 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { }
55 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; 55 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE;
56 virtual void setNeedsRedrawOnImplThread() OVERRIDE; 56 virtual void setNeedsRedrawOnImplThread() OVERRIDE;
57 virtual void setNeedsCommitOnImplThread() OVERRIDE; 57 virtual void setNeedsCommitOnImplThread() OVERRIDE;
58 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; 58 virtual void setNeedsManageTilesOnImplThread() OVERRIDE;
59 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE; 59 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE;
60 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE; 60 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE;
61 virtual void sendManagedMemoryStats() OVERRIDE; 61 virtual void sendManagedMemoryStats() OVERRIDE;
62 virtual void onReceivedLatencyInfo(const LatencyInfo& latencyInfo) OVERRIDE;
62 63
63 // Called by the legacy path where RenderWidget does the scheduling. 64 // Called by the legacy path where RenderWidget does the scheduling.
64 void compositeImmediately(); 65 void compositeImmediately();
65 66
66 private: 67 private:
67 explicit SingleThreadProxy(LayerTreeHost*); 68 explicit SingleThreadProxy(LayerTreeHost*);
68 69
69 bool commitAndComposite(); 70 bool commitAndComposite();
70 void doCommit(scoped_ptr<ResourceUpdateQueue>); 71 void doCommit(scoped_ptr<ResourceUpdateQueue>);
71 bool doComposite(); 72 bool doComposite();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 { 148 {
148 } 149 }
149 private: 150 private:
150 DebugScopedSetImplThread m_implThread; 151 DebugScopedSetImplThread m_implThread;
151 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; 152 DebugScopedSetMainThreadBlocked m_mainThreadBlocked;
152 }; 153 };
153 154
154 } // namespace cc 155 } // namespace cc
155 156
156 #endif // CC_SINGLE_THREAD_PROXY_H_ 157 #endif // CC_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/output_surface_client.h ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698