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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h

Issue 9933003: Merge 112360 - [chromium] Route monotonic clock up from compositor (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void scheduledActionUpdateMoreResources(); 87 virtual void scheduledActionUpdateMoreResources();
88 virtual void scheduledActionCommit(); 88 virtual void scheduledActionCommit();
89 virtual void scheduledActionBeginContextRecreation(); 89 virtual void scheduledActionBeginContextRecreation();
90 90
91 private: 91 private:
92 explicit CCThreadProxy(CCLayerTreeHost*); 92 explicit CCThreadProxy(CCLayerTreeHost*);
93 friend class CCThreadProxyContextRecreationTimer; 93 friend class CCThreadProxyContextRecreationTimer;
94 94
95 // Set on impl thread, read on main thread. 95 // Set on impl thread, read on main thread.
96 struct BeginFrameAndCommitState { 96 struct BeginFrameAndCommitState {
97 BeginFrameAndCommitState() : frameBeginTime() { } 97 BeginFrameAndCommitState() : monotonicFrameBeginTime() { }
98 double frameBeginTime; 98 double monotonicFrameBeginTime;
99 OwnPtr<CCScrollAndScaleSet> scrollInfo; 99 OwnPtr<CCScrollAndScaleSet> scrollInfo;
100 }; 100 };
101 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; 101 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
102 102
103 // Called on main thread 103 // Called on main thread
104 void beginFrame(); 104 void beginFrame();
105 void didCommitAndDrawFrame(); 105 void didCommitAndDrawFrame();
106 void didCompleteSwapBuffers(); 106 void didCompleteSwapBuffers();
107 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc kTime); 107 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc kTime);
108 void beginContextRecreation(); 108 void beginContextRecreation();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 CCCompletionEvent* m_commitCompletionEventOnImplThread; 166 CCCompletionEvent* m_commitCompletionEventOnImplThread;
167 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread; 167 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread;
168 168
169 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad. 169 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad.
170 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; 170 bool m_nextFrameIsNewlyCommittedFrameOnImplThread;
171 }; 171 };
172 172
173 } 173 }
174 174
175 #endif 175 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698