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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 69 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
70 base::TimeDelta interval) OVERRIDE; | 70 base::TimeDelta interval) OVERRIDE; |
71 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 71 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) |
72 OVERRIDE; | 72 OVERRIDE; |
73 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 73 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
74 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; | 74 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; |
75 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 75 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
76 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; | 76 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; |
77 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 77 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
78 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 78 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
79 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | |
80 virtual void PostAnimationEventsToMainThreadOnImplThread( | 79 virtual void PostAnimationEventsToMainThreadOnImplThread( |
81 scoped_ptr<AnimationEventsVector> queue, | 80 scoped_ptr<AnimationEventsVector> queue, |
82 base::Time wall_clock_time) OVERRIDE; | 81 base::Time wall_clock_time) OVERRIDE; |
83 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 82 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
84 int priority_cutoff) | 83 int priority_cutoff) |
85 OVERRIDE; | 84 OVERRIDE; |
86 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 85 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
87 virtual void SendManagedMemoryStats() OVERRIDE; | 86 virtual void SendManagedMemoryStats() OVERRIDE; |
88 virtual bool IsInsideDraw() OVERRIDE; | 87 virtual bool IsInsideDraw() OVERRIDE; |
89 virtual void RenewTreePriority() OVERRIDE; | 88 virtual void RenewTreePriority() OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 CompletionEvent* completion, | 168 CompletionEvent* completion, |
170 bool* has_initialized_output_surface); | 169 bool* has_initialized_output_surface); |
171 void InitializeOutputSurfaceOnImplThread( | 170 void InitializeOutputSurfaceOnImplThread( |
172 CompletionEvent* completion, | 171 CompletionEvent* completion, |
173 scoped_ptr<OutputSurface> output_surface, | 172 scoped_ptr<OutputSurface> output_surface, |
174 scoped_refptr<ContextProvider> offscreen_context_provider, | 173 scoped_refptr<ContextProvider> offscreen_context_provider, |
175 bool* success, | 174 bool* success, |
176 RendererCapabilities* capabilities); | 175 RendererCapabilities* capabilities); |
177 void FinishGLOnImplThread(CompletionEvent* completion); | 176 void FinishGLOnImplThread(CompletionEvent* completion); |
178 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 177 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
179 void ManageTilesOnImplThread(); | |
180 void AcquireLayerTexturesForMainThreadOnImplThread( | 178 void AcquireLayerTexturesForMainThreadOnImplThread( |
181 CompletionEvent* completion); | 179 CompletionEvent* completion); |
182 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( | 180 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( |
183 bool forced_draw); | 181 bool forced_draw); |
184 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 182 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
185 void CheckOutputSurfaceStatusOnImplThread(); | 183 void CheckOutputSurfaceStatusOnImplThread(); |
186 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 184 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
187 void CapturePictureOnImplThread(CompletionEvent* completion, | 185 void CapturePictureOnImplThread(CompletionEvent* completion, |
188 skia::RefPtr<SkPicture>* picture); | 186 skia::RefPtr<SkPicture>* picture); |
189 void AsValueOnImplThread(CompletionEvent* completion, | 187 void AsValueOnImplThread(CompletionEvent* completion, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 259 |
262 base::TimeTicks smoothness_takes_priority_expiration_time_; | 260 base::TimeTicks smoothness_takes_priority_expiration_time_; |
263 bool renew_tree_priority_on_impl_thread_pending_; | 261 bool renew_tree_priority_on_impl_thread_pending_; |
264 | 262 |
265 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 263 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
266 }; | 264 }; |
267 | 265 |
268 } // namespace cc | 266 } // namespace cc |
269 | 267 |
270 #endif // CC_TREES_THREAD_PROXY_H_ | 268 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |