Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Side by Side Diff: trunk/src/cc/trees/thread_proxy.h

Issue 141833002: Revert 245445 "Unifies LayerTreeHost::SetNeedsUpdateLayers and S..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/cc/trees/single_thread_proxy.cc ('k') | trunk/src/cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
52 virtual void SetNeedsUpdateLayers() OVERRIDE; 53 virtual void SetNeedsUpdateLayers() OVERRIDE;
53 virtual void SetNeedsCommit() OVERRIDE; 54 virtual void SetNeedsCommit() OVERRIDE;
54 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; 55 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE;
55 virtual void SetNextCommitWaitsForActivation() OVERRIDE; 56 virtual void SetNextCommitWaitsForActivation() OVERRIDE;
56 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; 57 virtual void NotifyInputThrottledUntilCommit() OVERRIDE;
57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 58 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
58 virtual bool CommitRequested() const OVERRIDE; 59 virtual bool CommitRequested() const OVERRIDE;
59 virtual bool BeginMainFrameRequested() const OVERRIDE; 60 virtual bool BeginMainFrameRequested() const OVERRIDE;
60 virtual void MainThreadHasStoppedFlinging() OVERRIDE; 61 virtual void MainThreadHasStoppedFlinging() OVERRIDE;
61 virtual void Start() OVERRIDE; 62 virtual void Start() OVERRIDE;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void StartScrollbarAnimationOnImplThread(); 197 void StartScrollbarAnimationOnImplThread();
197 void MainThreadHasStoppedFlingingOnImplThread(); 198 void MainThreadHasStoppedFlingingOnImplThread();
198 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); 199 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled);
199 LayerTreeHost* layer_tree_host(); 200 LayerTreeHost* layer_tree_host();
200 const LayerTreeHost* layer_tree_host() const; 201 const LayerTreeHost* layer_tree_host() const;
201 PrioritizedResourceManager* contents_texture_manager_on_main_thread(); 202 PrioritizedResourceManager* contents_texture_manager_on_main_thread();
202 PrioritizedResourceManager* contents_texture_manager_on_impl_thread(); 203 PrioritizedResourceManager* contents_texture_manager_on_impl_thread();
203 204
204 // Accessed on main thread only. 205 // Accessed on main thread only.
205 206
206 // Set only when SetNeedsUpdateLayers is called. 207 // Set only when SetNeedsAnimate is called.
207 bool update_requested_; 208 bool animate_requested_;
208 // Set only when SetNeedsCommit is called. 209 // Set only when SetNeedsCommit is called.
209 bool commit_requested_; 210 bool commit_requested_;
210 // Set by both SetNeedsUpdateLayers and SetNeedsCommit. 211 // Set by SetNeedsAnimate, SetNeedsUpdateLayers, and SetNeedsCommit.
211 bool commit_request_sent_to_impl_thread_; 212 bool commit_request_sent_to_impl_thread_;
212 // Set by BeginMainFrame 213 // Set by BeginMainFrame
213 bool created_offscreen_context_provider_; 214 bool created_offscreen_context_provider_;
214 base::CancelableClosure output_surface_creation_callback_; 215 base::CancelableClosure output_surface_creation_callback_;
215 // Don't use this variable directly, go through layer_tree_host() to ensure it 216 // Don't use this variable directly, go through layer_tree_host() to ensure it
216 // is only used on the main thread or if the main thread is blocked. 217 // is only used on the main thread or if the main thread is blocked.
217 LayerTreeHost* layer_tree_host_unsafe_; 218 LayerTreeHost* layer_tree_host_unsafe_;
218 // Use one of the contents_texture_manager_on functions above instead of using 219 // Use one of the contents_texture_manager_on functions above instead of using
219 // this variable directly. 220 // this variable directly.
220 PrioritizedResourceManager* contents_texture_manager_unsafe_; 221 PrioritizedResourceManager* contents_texture_manager_unsafe_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 base::WeakPtrFactory<ThreadProxy> weak_factory_; 289 base::WeakPtrFactory<ThreadProxy> weak_factory_;
289 290
290 const int layer_tree_host_id_; 291 const int layer_tree_host_id_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 293 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
293 }; 294 };
294 295
295 } // namespace cc 296 } // namespace cc
296 297
297 #endif // CC_TREES_THREAD_PROXY_H_ 298 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/trees/single_thread_proxy.cc ('k') | trunk/src/cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698