OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |