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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 void AnimateScrollbarsRecursive(LayerImpl* layer, | 432 void AnimateScrollbarsRecursive(LayerImpl* layer, |
433 base::TimeTicks time); | 433 base::TimeTicks time); |
434 | 434 |
435 void UpdateCurrentFrameTime(base::TimeTicks* ticks, base::Time* now) const; | 435 void UpdateCurrentFrameTime(base::TimeTicks* ticks, base::Time* now) const; |
436 | 436 |
437 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time); | 437 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time); |
438 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy); | 438 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy); |
439 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); | 439 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); |
440 | 440 |
441 scoped_ptr<OutputSurface> output_surface_; | 441 scoped_ptr<OutputSurface> output_surface_; |
| 442 bool output_surface_lost_; |
442 | 443 |
443 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- | 444 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- |
444 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). | 445 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). |
445 scoped_ptr<ResourceProvider> resource_provider_; | 446 scoped_ptr<ResourceProvider> resource_provider_; |
446 scoped_ptr<TileManager> tile_manager_; | 447 scoped_ptr<TileManager> tile_manager_; |
447 scoped_ptr<Renderer> renderer_; | 448 scoped_ptr<Renderer> renderer_; |
448 | 449 |
449 // Tree currently being drawn. | 450 // Tree currently being drawn. |
450 scoped_ptr<LayerTreeImpl> active_tree_; | 451 scoped_ptr<LayerTreeImpl> active_tree_; |
451 | 452 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 533 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
533 | 534 |
534 bool need_check_for_completed_tile_uploads_before_draw_; | 535 bool need_check_for_completed_tile_uploads_before_draw_; |
535 | 536 |
536 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 537 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
537 }; | 538 }; |
538 | 539 |
539 } // namespace cc | 540 } // namespace cc |
540 | 541 |
541 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 542 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |