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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 61 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
62 virtual bool CommitPendingForTesting() OVERRIDE; | 62 virtual bool CommitPendingForTesting() OVERRIDE; |
63 virtual std::string SchedulerStateAsStringForTesting() OVERRIDE; | 63 virtual std::string SchedulerStateAsStringForTesting() OVERRIDE; |
64 | 64 |
65 // LayerTreeHostImplClient implementation | 65 // LayerTreeHostImplClient implementation |
66 virtual void DidTryInitializeRendererOnImplThread( | 66 virtual void DidTryInitializeRendererOnImplThread( |
67 bool success, | 67 bool success, |
68 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; | 68 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; |
69 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 69 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
70 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 70 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; |
71 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) OVERRIDE; | 71 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) OVERRIDE; |
72 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 72 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
73 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; | 73 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; |
74 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 74 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
75 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; | 75 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; |
76 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 76 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
77 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 77 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
78 virtual void PostAnimationEventsToMainThreadOnImplThread( | 78 virtual void PostAnimationEventsToMainThreadOnImplThread( |
79 scoped_ptr<AnimationEventsVector> queue, | 79 scoped_ptr<AnimationEventsVector> queue, |
80 base::Time wall_clock_time) OVERRIDE; | 80 base::Time wall_clock_time) OVERRIDE; |
81 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 81 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 bool renew_tree_priority_on_impl_thread_pending_; | 246 bool renew_tree_priority_on_impl_thread_pending_; |
247 | 247 |
248 RollingTimeDeltaHistory draw_duration_history_; | 248 RollingTimeDeltaHistory draw_duration_history_; |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 250 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace cc | 253 } // namespace cc |
254 | 254 |
255 #endif // CC_TREES_THREAD_PROXY_H_ | 255 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |