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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 279013002: Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-lth-proxy-renderer: rebase-on-drawresult Created 6 years, 7 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 | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.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_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual void Animate(base::TimeTicks monotonic_time); 181 virtual void Animate(base::TimeTicks monotonic_time);
182 virtual void UpdateAnimationState(bool start_ready_animations); 182 virtual void UpdateAnimationState(bool start_ready_animations);
183 void ActivateAnimations(); 183 void ActivateAnimations();
184 void MainThreadHasStoppedFlinging(); 184 void MainThreadHasStoppedFlinging();
185 void UpdateBackgroundAnimateTicking(bool should_background_tick); 185 void UpdateBackgroundAnimateTicking(bool should_background_tick);
186 void DidAnimateScrollOffset(); 186 void DidAnimateScrollOffset();
187 void SetViewportDamage(const gfx::Rect& damage_rect); 187 void SetViewportDamage(const gfx::Rect& damage_rect);
188 188
189 virtual void ManageTiles(); 189 virtual void ManageTiles();
190 190
191 // Returns false if problems occured preparing the frame, and we should try 191 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
192 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers 192 // should try to avoid displaying the frame. If PrepareToDraw is called,
193 // must also be called, regardless of whether DrawLayers is called between the 193 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
194 // two. 194 // called between the two.
195 virtual DrawResult PrepareToDraw(FrameData* frame, 195 virtual DrawResult PrepareToDraw(FrameData* frame);
196 const gfx::Rect& damage_rect);
197 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 196 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time);
198 // Must be called if and only if PrepareToDraw was called. 197 // Must be called if and only if PrepareToDraw was called.
199 void DidDrawAllLayers(const FrameData& frame); 198 void DidDrawAllLayers(const FrameData& frame);
200 199
201 const LayerTreeSettings& settings() const { return settings_; } 200 const LayerTreeSettings& settings() const { return settings_; }
202 201
203 // Evict all textures by enforcing a memory policy with an allocation of 0. 202 // Evict all textures by enforcing a memory policy with an allocation of 0.
204 void EvictTexturesForTesting(); 203 void EvictTexturesForTesting();
205 204
206 // When blocking, this prevents client_->NotifyReadyToActivate() from being 205 // When blocking, this prevents client_->NotifyReadyToActivate() from being
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 TileManager* tile_manager() { return tile_manager_.get(); } 273 TileManager* tile_manager() { return tile_manager_.get(); }
275 ResourcePool* resource_pool() { return resource_pool_.get(); } 274 ResourcePool* resource_pool() { return resource_pool_.get(); }
276 Renderer* renderer() { return renderer_.get(); } 275 Renderer* renderer() { return renderer_.get(); }
277 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 276 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
278 277
279 virtual bool SwapBuffers(const FrameData& frame); 278 virtual bool SwapBuffers(const FrameData& frame);
280 void SetNeedsBeginFrame(bool enable); 279 void SetNeedsBeginFrame(bool enable);
281 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 280 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
282 void DidModifyTilePriorities(); 281 void DidModifyTilePriorities();
283 282
284 void Readback(void* pixels, const gfx::Rect& rect_in_device_viewport);
285
286 LayerTreeImpl* active_tree() { return active_tree_.get(); } 283 LayerTreeImpl* active_tree() { return active_tree_.get(); }
287 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 284 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
288 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 285 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
289 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 286 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
290 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 287 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
291 virtual void CreatePendingTree(); 288 virtual void CreatePendingTree();
292 virtual void UpdateVisibleTiles(); 289 virtual void UpdateVisibleTiles();
293 virtual void ActivatePendingTree(); 290 virtual void ActivatePendingTree();
294 291
295 // Shortcuts to layers on the active tree. 292 // Shortcuts to layers on the active tree.
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 676 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
680 677
681 size_t transfer_buffer_memory_limit_; 678 size_t transfer_buffer_memory_limit_;
682 679
683 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 680 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
684 }; 681 };
685 682
686 } // namespace cc 683 } // namespace cc
687 684
688 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 685 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698