| 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_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
| 6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void DidCompleteSwapBuffers() { client_->didCompleteSwapBuffers(); } | 117 void DidCompleteSwapBuffers() { client_->didCompleteSwapBuffers(); } |
| 118 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); | 118 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); |
| 119 virtual void AcquireLayerTextures(); | 119 virtual void AcquireLayerTextures(); |
| 120 // Returns false if we should abort this frame due to initialization failure. | 120 // Returns false if we should abort this frame due to initialization failure. |
| 121 bool InitializeRendererIfNeeded(); | 121 bool InitializeRendererIfNeeded(); |
| 122 void UpdateLayers(ResourceUpdateQueue* queue, | 122 void UpdateLayers(ResourceUpdateQueue* queue, |
| 123 size_t contents_memory_limit_bytes); | 123 size_t contents_memory_limit_bytes); |
| 124 | 124 |
| 125 LayerTreeHostClient* client() { return client_; } | 125 LayerTreeHostClient* client() { return client_; } |
| 126 | 126 |
| 127 void Composite(); | 127 void Composite(base::TimeTicks frame_begin_time); |
| 128 | 128 |
| 129 // Only used when compositing on the main thread. | 129 // Only used when compositing on the main thread. |
| 130 void ScheduleComposite(); | 130 void ScheduleComposite(); |
| 131 | 131 |
| 132 // Composites and attempts to read back the result into the provided | 132 // Composites and attempts to read back the result into the provided |
| 133 // buffer. If it wasn't possible, e.g. due to context lost, will return | 133 // buffer. If it wasn't possible, e.g. due to context lost, will return |
| 134 // false. | 134 // false. |
| 135 bool CompositeAndReadback(void* pixels, gfx::Rect rect_in_device_viewport); | 135 bool CompositeAndReadback(void* pixels, gfx::Rect rect_in_device_viewport); |
| 136 | 136 |
| 137 void FinishAllRendering(); | 137 void FinishAllRendering(); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 size_t partial_texture_update_requests_; | 310 size_t partial_texture_update_requests_; |
| 311 | 311 |
| 312 scoped_ptr<AnimationRegistrar> animation_registrar_; | 312 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 313 | 313 |
| 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 } // namespace cc | 317 } // namespace cc |
| 318 | 318 |
| 319 #endif // CC_LAYER_TREE_HOST_H_ | 319 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |