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

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

Issue 340743002: cc: Removing base::TimeTicks argument to DrawLayers as it isn't used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto master for landing. Created 5 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/test/layer_tree_test.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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void DidAnimateScrollOffset(); 225 void DidAnimateScrollOffset();
226 void SetViewportDamage(const gfx::Rect& damage_rect); 226 void SetViewportDamage(const gfx::Rect& damage_rect);
227 227
228 virtual void PrepareTiles(); 228 virtual void PrepareTiles();
229 229
230 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we 230 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
231 // should try to avoid displaying the frame. If PrepareToDraw is called, 231 // should try to avoid displaying the frame. If PrepareToDraw is called,
232 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is 232 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
233 // called between the two. 233 // called between the two.
234 virtual DrawResult PrepareToDraw(FrameData* frame); 234 virtual DrawResult PrepareToDraw(FrameData* frame);
235 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 235 virtual void DrawLayers(FrameData* frame);
236 // Must be called if and only if PrepareToDraw was called. 236 // Must be called if and only if PrepareToDraw was called.
237 void DidDrawAllLayers(const FrameData& frame); 237 void DidDrawAllLayers(const FrameData& frame);
238 238
239 const LayerTreeSettings& settings() const { return settings_; } 239 const LayerTreeSettings& settings() const { return settings_; }
240 240
241 // Evict all textures by enforcing a memory policy with an allocation of 0. 241 // Evict all textures by enforcing a memory policy with an allocation of 0.
242 void EvictTexturesForTesting(); 242 void EvictTexturesForTesting();
243 243
244 // When blocking, this prevents client_->NotifyReadyToActivate() from being 244 // When blocking, this prevents client_->NotifyReadyToActivate() from being
245 // called. When disabled, it calls client_->NotifyReadyToActivate() 245 // called. When disabled, it calls client_->NotifyReadyToActivate()
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 762 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
763 763
764 scoped_ptr<Viewport> viewport_; 764 scoped_ptr<Viewport> viewport_;
765 765
766 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 766 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
767 }; 767 };
768 768
769 } // namespace cc 769 } // namespace cc
770 770
771 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 771 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698