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 <set> | 10 #include <set> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 struct RenderingStats; | 61 struct RenderingStats; |
62 struct ScrollAndScaleSet; | 62 struct ScrollAndScaleSet; |
63 | 63 |
64 // Provides information on an Impl's rendering capabilities back to the | 64 // Provides information on an Impl's rendering capabilities back to the |
65 // LayerTreeHost. | 65 // LayerTreeHost. |
66 struct CC_EXPORT RendererCapabilities { | 66 struct CC_EXPORT RendererCapabilities { |
67 RendererCapabilities(ResourceFormat best_texture_format, | 67 RendererCapabilities(ResourceFormat best_texture_format, |
68 bool allow_partial_texture_updates, | 68 bool allow_partial_texture_updates, |
69 bool using_offscreen_context3d, | 69 bool using_offscreen_context3d, |
70 int max_texture_size, | 70 int max_texture_size, |
71 bool using_shared_memory_resources); | 71 bool using_shared_memory_resources, |
72 bool allow_rasterize_on_demand); | |
72 | 73 |
73 RendererCapabilities(); | 74 RendererCapabilities(); |
74 ~RendererCapabilities(); | 75 ~RendererCapabilities(); |
75 | 76 |
76 // Duplicate any modification to this list to RendererCapabilitiesImpl. | 77 // Duplicate any modification to this list to RendererCapabilitiesImpl. |
77 ResourceFormat best_texture_format; | 78 ResourceFormat best_texture_format; |
78 bool allow_partial_texture_updates; | 79 bool allow_partial_texture_updates; |
79 bool using_offscreen_context3d; | 80 bool using_offscreen_context3d; |
80 int max_texture_size; | 81 int max_texture_size; |
81 bool using_shared_memory_resources; | 82 bool using_shared_memory_resources; |
83 bool allow_rasterize_on_demand; | |
danakj
2014/02/10 16:39:43
Does the main thread need to know about this? I do
reveman
2014/02/10 17:16:14
Correct. Fixed in latest patch.
| |
82 }; | 84 }; |
83 | 85 |
84 class CC_EXPORT LayerTreeHost { | 86 class CC_EXPORT LayerTreeHost { |
85 public: | 87 public: |
86 // The SharedBitmapManager will be used on the compositor thread. | 88 // The SharedBitmapManager will be used on the compositor thread. |
87 static scoped_ptr<LayerTreeHost> CreateThreaded( | 89 static scoped_ptr<LayerTreeHost> CreateThreaded( |
88 LayerTreeHostClient* client, | 90 LayerTreeHostClient* client, |
89 SharedBitmapManager* manager, | 91 SharedBitmapManager* manager, |
90 const LayerTreeSettings& settings, | 92 const LayerTreeSettings& settings, |
91 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 93 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
460 | 462 |
461 ScopedPtrVector<SwapPromise> swap_promise_list_; | 463 ScopedPtrVector<SwapPromise> swap_promise_list_; |
462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 464 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
463 | 465 |
464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 466 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
465 }; | 467 }; |
466 | 468 |
467 } // namespace cc | 469 } // namespace cc |
468 | 470 |
469 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 471 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |