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

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: Rebasing onto master. Created 6 years, 5 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
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DRAW_SUCCESS unless problems occured preparing the frame, and we 191 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
192 // should try to avoid displaying the frame. If PrepareToDraw is called, 192 // should try to avoid displaying the frame. If PrepareToDraw is called,
193 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is 193 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
194 // called between the two. 194 // called between the two.
195 virtual DrawResult PrepareToDraw(FrameData* frame); 195 virtual DrawResult PrepareToDraw(FrameData* frame);
196 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 196 virtual void DrawLayers(FrameData* frame);
197 // Must be called if and only if PrepareToDraw was called. 197 // Must be called if and only if PrepareToDraw was called.
198 void DidDrawAllLayers(const FrameData& frame); 198 void DidDrawAllLayers(const FrameData& frame);
199 199
200 const LayerTreeSettings& settings() const { return settings_; } 200 const LayerTreeSettings& settings() const { return settings_; }
201 201
202 // 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.
203 void EvictTexturesForTesting(); 203 void EvictTexturesForTesting();
204 204
205 // When blocking, this prevents client_->NotifyReadyToActivate() from being 205 // When blocking, this prevents client_->NotifyReadyToActivate() from being
206 // called. When disabled, it calls client_->NotifyReadyToActivate() 206 // called. When disabled, it calls client_->NotifyReadyToActivate()
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 size_t transfer_buffer_memory_limit_; 689 size_t transfer_buffer_memory_limit_;
690 690
691 std::vector<PictureLayerImpl*> picture_layers_; 691 std::vector<PictureLayerImpl*> picture_layers_;
692 692
693 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 693 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
694 }; 694 };
695 695
696 } // namespace cc 696 } // namespace cc
697 697
698 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 698 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698