OLD | NEW |
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 CCThreadProxy_h | 5 #ifndef CCThreadProxy_h |
6 #define CCThreadProxy_h | 6 #define CCThreadProxy_h |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "cc/animation_events.h" | 9 #include "cc/animation_events.h" |
10 #include "cc/completion_event.h" | 10 #include "cc/completion_event.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual void setSurfaceReady() OVERRIDE; | 38 virtual void setSurfaceReady() OVERRIDE; |
39 virtual void setVisible(bool) OVERRIDE; | 39 virtual void setVisible(bool) OVERRIDE; |
40 virtual bool initializeRenderer() OVERRIDE; | 40 virtual bool initializeRenderer() OVERRIDE; |
41 virtual bool recreateContext() OVERRIDE; | 41 virtual bool recreateContext() OVERRIDE; |
42 virtual void renderingStats(RenderingStats*) OVERRIDE; | 42 virtual void renderingStats(RenderingStats*) OVERRIDE; |
43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; | 43 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; |
44 virtual void loseContext() OVERRIDE; | 44 virtual void loseContext() OVERRIDE; |
45 virtual void setNeedsAnimate() OVERRIDE; | 45 virtual void setNeedsAnimate() OVERRIDE; |
46 virtual void setNeedsCommit() OVERRIDE; | 46 virtual void setNeedsCommit() OVERRIDE; |
47 virtual void setNeedsRedraw() OVERRIDE; | 47 virtual void setNeedsRedraw() OVERRIDE; |
| 48 virtual void setDeferCommits(bool) OVERRIDE; |
48 virtual bool commitRequested() const OVERRIDE; | 49 virtual bool commitRequested() const OVERRIDE; |
49 virtual void didAddAnimation() OVERRIDE { } | 50 virtual void didAddAnimation() OVERRIDE { } |
50 virtual void start() OVERRIDE; | 51 virtual void start() OVERRIDE; |
51 virtual void stop() OVERRIDE; | 52 virtual void stop() OVERRIDE; |
52 virtual size_t maxPartialTextureUpdates() const OVERRIDE; | 53 virtual size_t maxPartialTextureUpdates() const OVERRIDE; |
53 virtual void acquireLayerTextures() OVERRIDE; | 54 virtual void acquireLayerTextures() OVERRIDE; |
54 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 55 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
55 | 56 |
56 // LayerTreeHostImplClient implementation | 57 // LayerTreeHostImplClient implementation |
57 virtual void didLoseContextOnImplThread() OVERRIDE; | 58 virtual void didLoseContextOnImplThread() OVERRIDE; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 168 |
168 scoped_ptr<ResourceUpdateController> m_currentResourceUpdateControllerOnImpl
Thread; | 169 scoped_ptr<ResourceUpdateController> m_currentResourceUpdateControllerOnImpl
Thread; |
169 | 170 |
170 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 171 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
171 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 172 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
172 | 173 |
173 bool m_renderVSyncEnabled; | 174 bool m_renderVSyncEnabled; |
174 | 175 |
175 base::TimeDelta m_totalCommitTime; | 176 base::TimeDelta m_totalCommitTime; |
176 size_t m_totalCommitCount; | 177 size_t m_totalCommitCount; |
| 178 |
| 179 bool m_deferCommits; |
| 180 bool m_deferredCommitPending; |
177 }; | 181 }; |
178 | 182 |
179 } | 183 } |
180 | 184 |
181 #endif | 185 #endif |
OLD | NEW |