| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 42 | 42 | 
| 43   // Proxy implementation | 43   // Proxy implementation | 
| 44   virtual bool CompositeAndReadback(void* pixels, | 44   virtual bool CompositeAndReadback(void* pixels, | 
| 45                                     const gfx::Rect& rect) OVERRIDE; | 45                                     const gfx::Rect& rect) OVERRIDE; | 
| 46   virtual void FinishAllRendering() OVERRIDE; | 46   virtual void FinishAllRendering() OVERRIDE; | 
| 47   virtual bool IsStarted() const OVERRIDE; | 47   virtual bool IsStarted() const OVERRIDE; | 
| 48   virtual void SetLayerTreeHostClientReady() OVERRIDE; | 48   virtual void SetLayerTreeHostClientReady() OVERRIDE; | 
| 49   virtual void SetVisible(bool visible) OVERRIDE; | 49   virtual void SetVisible(bool visible) OVERRIDE; | 
| 50   virtual void CreateAndInitializeOutputSurface() OVERRIDE; | 50   virtual void CreateAndInitializeOutputSurface() OVERRIDE; | 
| 51   virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 51   virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 
| 52   virtual void SetNeedsAnimate() OVERRIDE; |  | 
| 53   virtual void SetNeedsUpdateLayers() OVERRIDE; | 52   virtual void SetNeedsUpdateLayers() OVERRIDE; | 
| 54   virtual void SetNeedsCommit() OVERRIDE; | 53   virtual void SetNeedsCommit() OVERRIDE; | 
| 55   virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; | 54   virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; | 
| 56   virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 55   virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 
| 57   virtual void NotifyInputThrottledUntilCommit() OVERRIDE; | 56   virtual void NotifyInputThrottledUntilCommit() OVERRIDE; | 
| 58   virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 57   virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 
| 59   virtual bool CommitRequested() const OVERRIDE; | 58   virtual bool CommitRequested() const OVERRIDE; | 
| 60   virtual bool BeginMainFrameRequested() const OVERRIDE; | 59   virtual bool BeginMainFrameRequested() const OVERRIDE; | 
| 61   virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 60   virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 
| 62   virtual void Start() OVERRIDE; | 61   virtual void Start() OVERRIDE; | 
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 197   void StartScrollbarAnimationOnImplThread(); | 196   void StartScrollbarAnimationOnImplThread(); | 
| 198   void MainThreadHasStoppedFlingingOnImplThread(); | 197   void MainThreadHasStoppedFlingingOnImplThread(); | 
| 199   void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 198   void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 
| 200   LayerTreeHost* layer_tree_host(); | 199   LayerTreeHost* layer_tree_host(); | 
| 201   const LayerTreeHost* layer_tree_host() const; | 200   const LayerTreeHost* layer_tree_host() const; | 
| 202   PrioritizedResourceManager* contents_texture_manager_on_main_thread(); | 201   PrioritizedResourceManager* contents_texture_manager_on_main_thread(); | 
| 203   PrioritizedResourceManager* contents_texture_manager_on_impl_thread(); | 202   PrioritizedResourceManager* contents_texture_manager_on_impl_thread(); | 
| 204 | 203 | 
| 205   // Accessed on main thread only. | 204   // Accessed on main thread only. | 
| 206 | 205 | 
| 207   // Set only when SetNeedsAnimate is called. | 206   // Set only when SetNeedsUpdateLayers is called. | 
| 208   bool animate_requested_; | 207   bool update_requested_; | 
| 209   // Set only when SetNeedsCommit is called. | 208   // Set only when SetNeedsCommit is called. | 
| 210   bool commit_requested_; | 209   bool commit_requested_; | 
| 211   // Set by SetNeedsAnimate, SetNeedsUpdateLayers, and SetNeedsCommit. | 210   // Set by both SetNeedsUpdateLayers and SetNeedsCommit. | 
| 212   bool commit_request_sent_to_impl_thread_; | 211   bool commit_request_sent_to_impl_thread_; | 
| 213   // Set by BeginMainFrame | 212   // Set by BeginMainFrame | 
| 214   bool created_offscreen_context_provider_; | 213   bool created_offscreen_context_provider_; | 
| 215   base::CancelableClosure output_surface_creation_callback_; | 214   base::CancelableClosure output_surface_creation_callback_; | 
| 216   // Don't use this variable directly, go through layer_tree_host() to ensure it | 215   // Don't use this variable directly, go through layer_tree_host() to ensure it | 
| 217   // is only used on the main thread or if the main thread is blocked. | 216   // is only used on the main thread or if the main thread is blocked. | 
| 218   LayerTreeHost* layer_tree_host_unsafe_; | 217   LayerTreeHost* layer_tree_host_unsafe_; | 
| 219   // Use one of the contents_texture_manager_on functions above instead of using | 218   // Use one of the contents_texture_manager_on functions above instead of using | 
| 220   // this variable directly. | 219   // this variable directly. | 
| 221   PrioritizedResourceManager* contents_texture_manager_unsafe_; | 220   PrioritizedResourceManager* contents_texture_manager_unsafe_; | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 289   base::WeakPtrFactory<ThreadProxy> weak_factory_; | 288   base::WeakPtrFactory<ThreadProxy> weak_factory_; | 
| 290 | 289 | 
| 291   const int layer_tree_host_id_; | 290   const int layer_tree_host_id_; | 
| 292 | 291 | 
| 293   DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 292   DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 
| 294 }; | 293 }; | 
| 295 | 294 | 
| 296 }  // namespace cc | 295 }  // namespace cc | 
| 297 | 296 | 
| 298 #endif  // CC_TREES_THREAD_PROXY_H_ | 297 #endif  // CC_TREES_THREAD_PROXY_H_ | 
| OLD | NEW | 
|---|