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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 void NotifyReadyToActivate() override; | 197 void NotifyReadyToActivate() override; |
198 void NotifyReadyToDraw() override; | 198 void NotifyReadyToDraw() override; |
199 // Please call these 3 functions through | 199 // Please call these 3 functions through |
200 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 200 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
201 // SetNeedsAnimate(). | 201 // SetNeedsAnimate(). |
202 void SetNeedsRedrawOnImplThread() override; | 202 void SetNeedsRedrawOnImplThread() override; |
203 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 203 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
204 void SetNeedsAnimateOnImplThread() override; | 204 void SetNeedsAnimateOnImplThread() override; |
205 void SetNeedsPrepareTilesOnImplThread() override; | 205 void SetNeedsPrepareTilesOnImplThread() override; |
206 void SetNeedsCommitOnImplThread() override; | 206 void SetNeedsCommitOnImplThread() override; |
| 207 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
207 void PostAnimationEventsToMainThreadOnImplThread( | 208 void PostAnimationEventsToMainThreadOnImplThread( |
208 scoped_ptr<AnimationEventsVector> queue) override; | 209 scoped_ptr<AnimationEventsVector> queue) override; |
209 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 210 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
210 int priority_cutoff) override; | 211 int priority_cutoff) override; |
211 bool IsInsideDraw() override; | 212 bool IsInsideDraw() override; |
212 void RenewTreePriority() override; | 213 void RenewTreePriority() override; |
213 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 214 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
214 base::TimeDelta delay) override; | 215 base::TimeDelta delay) override; |
215 void DidActivateSyncTree() override; | 216 void DidActivateSyncTree() override; |
216 void DidPrepareTiles() override; | 217 void DidPrepareTiles() override; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 310 |
310 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
311 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
312 | 313 |
313 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
314 }; | 315 }; |
315 | 316 |
316 } // namespace cc | 317 } // namespace cc |
317 | 318 |
318 #endif // CC_TREES_THREAD_PROXY_H_ | 319 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |