| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void DidAnimateScrollOffset(); | 189 void DidAnimateScrollOffset(); |
| 190 void SetViewportDamage(const gfx::Rect& damage_rect); | 190 void SetViewportDamage(const gfx::Rect& damage_rect); |
| 191 | 191 |
| 192 virtual void ManageTiles(); | 192 virtual void ManageTiles(); |
| 193 | 193 |
| 194 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we | 194 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we |
| 195 // should try to avoid displaying the frame. If PrepareToDraw is called, | 195 // should try to avoid displaying the frame. If PrepareToDraw is called, |
| 196 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is | 196 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is |
| 197 // called between the two. | 197 // called between the two. |
| 198 virtual DrawResult PrepareToDraw(FrameData* frame); | 198 virtual DrawResult PrepareToDraw(FrameData* frame); |
| 199 virtual void DrawLayers(FrameData* frame); | 199 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); |
| 200 // Must be called if and only if PrepareToDraw was called. | 200 // Must be called if and only if PrepareToDraw was called. |
| 201 void DidDrawAllLayers(const FrameData& frame); | 201 void DidDrawAllLayers(const FrameData& frame); |
| 202 | 202 |
| 203 const LayerTreeSettings& settings() const { return settings_; } | 203 const LayerTreeSettings& settings() const { return settings_; } |
| 204 | 204 |
| 205 // Evict all textures by enforcing a memory policy with an allocation of 0. | 205 // Evict all textures by enforcing a memory policy with an allocation of 0. |
| 206 void EvictTexturesForTesting(); | 206 void EvictTexturesForTesting(); |
| 207 | 207 |
| 208 // When blocking, this prevents client_->NotifyReadyToActivate() from being | 208 // When blocking, this prevents client_->NotifyReadyToActivate() from being |
| 209 // called. When disabled, it calls client_->NotifyReadyToActivate() | 209 // called. When disabled, it calls client_->NotifyReadyToActivate() |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 size_t transfer_buffer_memory_limit_; | 690 size_t transfer_buffer_memory_limit_; |
| 691 | 691 |
| 692 std::vector<PictureLayerImpl*> picture_layers_; | 692 std::vector<PictureLayerImpl*> picture_layers_; |
| 693 | 693 |
| 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 695 }; | 695 }; |
| 696 | 696 |
| 697 } // namespace cc | 697 } // namespace cc |
| 698 | 698 |
| 699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |