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

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

Issue 733773005: cc: GPU rasterize tiles synchronously in PrepareToDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant completed_tasks_.clear() Created 6 years, 1 month 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
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual void BeginMainFrameAborted(bool did_handle); 180 virtual void BeginMainFrameAborted(bool did_handle);
181 virtual void BeginCommit(); 181 virtual void BeginCommit();
182 virtual void CommitComplete(); 182 virtual void CommitComplete();
183 virtual void Animate(base::TimeTicks monotonic_time); 183 virtual void Animate(base::TimeTicks monotonic_time);
184 virtual void UpdateAnimationState(bool start_ready_animations); 184 virtual void UpdateAnimationState(bool start_ready_animations);
185 void ActivateAnimations(); 185 void ActivateAnimations();
186 void MainThreadHasStoppedFlinging(); 186 void MainThreadHasStoppedFlinging();
187 void DidAnimateScrollOffset(); 187 void DidAnimateScrollOffset();
188 void SetViewportDamage(const gfx::Rect& damage_rect); 188 void SetViewportDamage(const gfx::Rect& damage_rect);
189 189
190 virtual void RasterizeTiles();
190 virtual void ManageTiles(); 191 virtual void ManageTiles();
191 192
192 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we 193 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
193 // should try to avoid displaying the frame. If PrepareToDraw is called, 194 // should try to avoid displaying the frame. If PrepareToDraw is called,
194 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is 195 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
195 // called between the two. 196 // called between the two.
196 virtual DrawResult PrepareToDraw(FrameData* frame); 197 virtual DrawResult PrepareToDraw(FrameData* frame);
197 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 198 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time);
198 // Must be called if and only if PrepareToDraw was called. 199 // Must be called if and only if PrepareToDraw was called.
199 void DidDrawAllLayers(const FrameData& frame); 200 void DidDrawAllLayers(const FrameData& frame);
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 706
706 bool requires_high_res_to_draw_; 707 bool requires_high_res_to_draw_;
707 bool required_for_draw_tile_is_top_of_raster_queue_; 708 bool required_for_draw_tile_is_top_of_raster_queue_;
708 709
709 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 710 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
710 }; 711 };
711 712
712 } // namespace cc 713 } // namespace cc
713 714
714 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 715 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698