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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } | 50 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } |
51 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; | 51 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; |
52 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } | 52 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) OVERRIDE { } |
53 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } | 53 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } |
54 virtual void setNeedsRedrawOnImplThread() OVERRIDE; | 54 virtual void setNeedsRedrawOnImplThread() OVERRIDE; |
55 virtual void setNeedsCommitOnImplThread() OVERRIDE; | 55 virtual void setNeedsCommitOnImplThread() OVERRIDE; |
56 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; | 56 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; |
57 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; | 57 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE; |
58 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; | 58 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE; |
59 virtual void sendManagedMemoryStats() OVERRIDE; | 59 virtual void sendManagedMemoryStats() OVERRIDE; |
| 60 virtual void onReceivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latency
Info) OVERRIDE; |
60 | 61 |
61 // Called by the legacy path where RenderWidget does the scheduling. | 62 // Called by the legacy path where RenderWidget does the scheduling. |
62 void compositeImmediately(); | 63 void compositeImmediately(); |
63 | 64 |
64 private: | 65 private: |
65 explicit SingleThreadProxy(LayerTreeHost*); | 66 explicit SingleThreadProxy(LayerTreeHost*); |
66 | 67 |
67 bool commitAndComposite(); | 68 bool commitAndComposite(); |
68 void doCommit(scoped_ptr<ResourceUpdateQueue>); | 69 void doCommit(scoped_ptr<ResourceUpdateQueue>); |
69 bool doComposite(); | 70 bool doComposite(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 { | 146 { |
146 } | 147 } |
147 private: | 148 private: |
148 DebugScopedSetImplThread m_implThread; | 149 DebugScopedSetImplThread m_implThread; |
149 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 150 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
150 }; | 151 }; |
151 | 152 |
152 } // namespace cc | 153 } // namespace cc |
153 | 154 |
154 #endif // CC_SINGLE_THREAD_PROXY_H_ | 155 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |