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