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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/cancelable_callback.h" | 13 #include "base/cancelable_callback.h" |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "cc/animation/animation_events.h" | 19 #include "cc/animation/animation_events.h" |
20 #include "cc/base/cc_export.h" | 20 #include "cc/base/cc_export.h" |
21 #include "cc/base/scoped_ptr_vector.h" | 21 #include "cc/base/scoped_ptr_vector.h" |
22 #include "cc/input/input_handler.h" | 22 #include "cc/input/input_handler.h" |
23 #include "cc/input/scrollbar.h" | 23 #include "cc/input/scrollbar.h" |
24 #include "cc/input/top_controls_state.h" | 24 #include "cc/input/top_controls_state.h" |
25 #include "cc/layers/layer_lists.h" | 25 #include "cc/layers/layer_lists.h" |
26 #include "cc/output/output_surface.h" | 26 #include "cc/output/output_surface.h" |
| 27 #include "cc/resources/resource_format.h" |
27 #include "cc/resources/scoped_ui_resource.h" | 28 #include "cc/resources/scoped_ui_resource.h" |
28 #include "cc/resources/ui_resource_bitmap.h" | 29 #include "cc/resources/ui_resource_bitmap.h" |
29 #include "cc/resources/ui_resource_client.h" | 30 #include "cc/resources/ui_resource_client.h" |
30 #include "cc/scheduler/rate_limiter.h" | 31 #include "cc/scheduler/rate_limiter.h" |
31 #include "cc/trees/layer_tree_host_client.h" | 32 #include "cc/trees/layer_tree_host_client.h" |
32 #include "cc/trees/layer_tree_host_common.h" | 33 #include "cc/trees/layer_tree_host_common.h" |
33 #include "cc/trees/layer_tree_settings.h" | 34 #include "cc/trees/layer_tree_settings.h" |
34 #include "cc/trees/occlusion_tracker.h" | 35 #include "cc/trees/occlusion_tracker.h" |
35 #include "cc/trees/proxy.h" | 36 #include "cc/trees/proxy.h" |
36 #include "third_party/skia/include/core/SkColor.h" | 37 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 29 matching lines...) Expand all Loading... |
66 class TopControlsManager; | 67 class TopControlsManager; |
67 struct RenderingStats; | 68 struct RenderingStats; |
68 struct ScrollAndScaleSet; | 69 struct ScrollAndScaleSet; |
69 | 70 |
70 // Provides information on an Impl's rendering capabilities back to the | 71 // Provides information on an Impl's rendering capabilities back to the |
71 // LayerTreeHost. | 72 // LayerTreeHost. |
72 struct CC_EXPORT RendererCapabilities { | 73 struct CC_EXPORT RendererCapabilities { |
73 RendererCapabilities(); | 74 RendererCapabilities(); |
74 ~RendererCapabilities(); | 75 ~RendererCapabilities(); |
75 | 76 |
76 unsigned best_texture_format; | 77 ResourceFormat best_texture_format; |
77 bool using_partial_swap; | 78 bool using_partial_swap; |
78 bool using_set_visibility; | 79 bool using_set_visibility; |
79 bool using_egl_image; | 80 bool using_egl_image; |
80 bool allow_partial_texture_updates; | 81 bool allow_partial_texture_updates; |
81 bool using_offscreen_context3d; | 82 bool using_offscreen_context3d; |
82 int max_texture_size; | 83 int max_texture_size; |
83 bool avoid_pow2_textures; | 84 bool avoid_pow2_textures; |
84 bool using_map_image; | 85 bool using_map_image; |
85 bool using_shared_memory_resources; | 86 bool using_shared_memory_resources; |
86 bool using_discard_framebuffer; | 87 bool using_discard_framebuffer; |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 scoped_refptr<Layer> page_scale_layer_; | 427 scoped_refptr<Layer> page_scale_layer_; |
427 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 428 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
428 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 429 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
429 | 430 |
430 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 431 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
431 }; | 432 }; |
432 | 433 |
433 } // namespace cc | 434 } // namespace cc |
434 | 435 |
435 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 436 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |