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

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

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « cc/trees/layer_tree_host_common.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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // RenderPassSink implementation. 179 // RenderPassSink implementation.
180 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; 180 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE;
181 }; 181 };
182 182
183 virtual void BeginMainFrameAborted(bool did_handle); 183 virtual void BeginMainFrameAborted(bool did_handle);
184 virtual void BeginCommit(); 184 virtual void BeginCommit();
185 virtual void CommitComplete(); 185 virtual void CommitComplete();
186 virtual void Animate(base::TimeTicks monotonic_time); 186 virtual void Animate(base::TimeTicks monotonic_time);
187 virtual void UpdateAnimationState(bool start_ready_animations); 187 virtual void UpdateAnimationState(bool start_ready_animations);
188 virtual bool IsTesting();
awoloszyn 2014/08/14 17:37:27 This is used to trigger RenderSurface creation on
danakj 2014/08/14 17:44:20 Oh gosh. Maybe we need to be refactoring our unit
188 void ActivateAnimations(); 189 void ActivateAnimations();
189 void MainThreadHasStoppedFlinging(); 190 void MainThreadHasStoppedFlinging();
190 void UpdateBackgroundAnimateTicking(bool should_background_tick); 191 void UpdateBackgroundAnimateTicking(bool should_background_tick);
191 void DidAnimateScrollOffset(); 192 void DidAnimateScrollOffset();
192 void SetViewportDamage(const gfx::Rect& damage_rect); 193 void SetViewportDamage(const gfx::Rect& damage_rect);
193 194
194 virtual void ManageTiles(); 195 virtual void ManageTiles();
195 196
196 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we 197 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
197 // should try to avoid displaying the frame. If PrepareToDraw is called, 198 // should try to avoid displaying the frame. If PrepareToDraw is called,
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 722
722 std::vector<PictureLayerImpl*> picture_layers_; 723 std::vector<PictureLayerImpl*> picture_layers_;
723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 724 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
724 725
725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 726 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
726 }; 727 };
727 728
728 } // namespace cc 729 } // namespace cc
729 730
730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 731 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698