| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 188   void OnCanDrawStateChanged(bool can_draw) override; | 188   void OnCanDrawStateChanged(bool can_draw) override; | 
| 189   void NotifyReadyToActivate() override; | 189   void NotifyReadyToActivate() override; | 
| 190   void NotifyReadyToDraw() override; | 190   void NotifyReadyToDraw() override; | 
| 191   // Please call these 3 functions through | 191   // Please call these 3 functions through | 
| 192   // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 192   // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 
| 193   // SetNeedsAnimate(). | 193   // SetNeedsAnimate(). | 
| 194   void SetNeedsRedrawOnImplThread() override; | 194   void SetNeedsRedrawOnImplThread() override; | 
| 195   void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 195   void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 
| 196   void SetNeedsAnimateOnImplThread() override; | 196   void SetNeedsAnimateOnImplThread() override; | 
| 197   void SetNeedsManageTilesOnImplThread() override; | 197   void SetNeedsManageTilesOnImplThread() override; | 
| 198   void DidInitializeVisibleTileOnImplThread() override; |  | 
| 199   void SetNeedsCommitOnImplThread() override; | 198   void SetNeedsCommitOnImplThread() override; | 
| 200   void PostAnimationEventsToMainThreadOnImplThread( | 199   void PostAnimationEventsToMainThreadOnImplThread( | 
| 201       scoped_ptr<AnimationEventsVector> queue) override; | 200       scoped_ptr<AnimationEventsVector> queue) override; | 
| 202   bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 201   bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 
| 203                                                int priority_cutoff) override; | 202                                                int priority_cutoff) override; | 
| 204   bool IsInsideDraw() override; | 203   bool IsInsideDraw() override; | 
| 205   void RenewTreePriority() override; | 204   void RenewTreePriority() override; | 
| 206   void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 205   void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 
| 207                                             base::TimeDelta delay) override; | 206                                             base::TimeDelta delay) override; | 
| 208   void DidActivateSyncTree() override; | 207   void DidActivateSyncTree() override; | 
| 209   void DidManageTiles() override; | 208   void DidManageTiles() override; | 
| 210 | 209 | 
| 211   // SchedulerClient implementation | 210   // SchedulerClient implementation | 
| 212   void WillBeginImplFrame(const BeginFrameArgs& args) override; | 211   void WillBeginImplFrame(const BeginFrameArgs& args) override; | 
| 213   void ScheduledActionSendBeginMainFrame() override; | 212   void ScheduledActionSendBeginMainFrame() override; | 
| 214   DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 213   DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 
| 215   DrawResult ScheduledActionDrawAndSwapForced() override; | 214   DrawResult ScheduledActionDrawAndSwapForced() override; | 
| 216   void ScheduledActionAnimate() override; | 215   void ScheduledActionAnimate() override; | 
| 217   void ScheduledActionCommit() override; | 216   void ScheduledActionCommit() override; | 
| 218   void ScheduledActionUpdateVisibleTiles() override; |  | 
| 219   void ScheduledActionActivateSyncTree() override; | 217   void ScheduledActionActivateSyncTree() override; | 
| 220   void ScheduledActionBeginOutputSurfaceCreation() override; | 218   void ScheduledActionBeginOutputSurfaceCreation() override; | 
| 221   void ScheduledActionManageTiles() override; | 219   void ScheduledActionManageTiles() override; | 
| 222   void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 220   void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 
| 223   base::TimeDelta DrawDurationEstimate() override; | 221   base::TimeDelta DrawDurationEstimate() override; | 
| 224   base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 222   base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 
| 225   base::TimeDelta CommitToActivateDurationEstimate() override; | 223   base::TimeDelta CommitToActivateDurationEstimate() override; | 
| 226   void DidBeginImplFrameDeadline() override; | 224   void DidBeginImplFrameDeadline() override; | 
| 227 | 225 | 
| 228   // ResourceUpdateControllerClient implementation | 226   // ResourceUpdateControllerClient implementation | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 296 | 294 | 
| 297   base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 295   base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 
| 298   base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 296   base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 
| 299 | 297 | 
| 300   DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 298   DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 
| 301 }; | 299 }; | 
| 302 | 300 | 
| 303 }  // namespace cc | 301 }  // namespace cc | 
| 304 | 302 | 
| 305 #endif  // CC_TREES_THREAD_PROXY_H_ | 303 #endif  // CC_TREES_THREAD_PROXY_H_ | 
| OLD | NEW | 
|---|