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/time.h" | 10 #include "base/time/time.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // LayerTreeHostImplClient implementation | 50 // LayerTreeHostImplClient implementation |
51 virtual void DidTryInitializeRendererOnImplThread( | 51 virtual void DidTryInitializeRendererOnImplThread( |
52 bool success, | 52 bool success, |
53 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; | 53 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; |
54 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 54 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
55 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 55 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
56 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) | 56 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) |
57 OVERRIDE {} | 57 OVERRIDE {} |
58 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 58 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
| 59 virtual void NotifyReadyToActivate() OVERRIDE; |
59 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; | 60 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; |
60 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 61 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
61 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; | 62 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; |
62 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 63 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
63 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 64 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
64 virtual void PostAnimationEventsToMainThreadOnImplThread( | 65 virtual void PostAnimationEventsToMainThreadOnImplThread( |
65 scoped_ptr<AnimationEventsVector> events, | 66 scoped_ptr<AnimationEventsVector> events, |
66 base::Time wall_clock_time) OVERRIDE; | 67 base::Time wall_clock_time) OVERRIDE; |
67 virtual bool ReduceContentsTextureMemoryOnImplThread( | 68 virtual bool ReduceContentsTextureMemoryOnImplThread( |
68 size_t limit_bytes, | 69 size_t limit_bytes, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 private: | 175 private: |
175 DebugScopedSetImplThread impl_thread_; | 176 DebugScopedSetImplThread impl_thread_; |
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 177 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
177 | 178 |
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 179 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
179 }; | 180 }; |
180 | 181 |
181 } // namespace cc | 182 } // namespace cc |
182 | 183 |
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 184 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |