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_TREES_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 49 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
50 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; | 50 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; |
51 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 51 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
52 virtual bool CommitPendingForTesting() OVERRIDE; | 52 virtual bool CommitPendingForTesting() OVERRIDE; |
53 | 53 |
54 // LayerTreeHostImplClient implementation | 54 // LayerTreeHostImplClient implementation |
55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
56 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 56 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; |
57 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 57 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
58 base::TimeDelta interval) OVERRIDE {} | 58 base::TimeDelta interval) OVERRIDE {} |
| 59 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} |
59 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} | 60 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} |
60 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; | 61 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; |
61 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 62 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
62 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 63 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
63 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 64 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
64 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 65 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
65 virtual void PostAnimationEventsToMainThreadOnImplThread( | 66 virtual void PostAnimationEventsToMainThreadOnImplThread( |
66 scoped_ptr<AnimationEventsVector> events, | 67 scoped_ptr<AnimationEventsVector> events, |
67 base::Time wall_clock_time) OVERRIDE; | 68 base::Time wall_clock_time) OVERRIDE; |
68 virtual bool ReduceContentsTextureMemoryOnImplThread( | 69 virtual bool ReduceContentsTextureMemoryOnImplThread( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 private: | 171 private: |
171 DebugScopedSetImplThread impl_thread_; | 172 DebugScopedSetImplThread impl_thread_; |
172 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 173 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
173 | 174 |
174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 175 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
175 }; | 176 }; |
176 | 177 |
177 } // namespace cc | 178 } // namespace cc |
178 | 179 |
179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 180 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |