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 #include "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 // point). | 2259 // point). |
2260 return false; | 2260 return false; |
2261 } | 2261 } |
2262 | 2262 |
2263 output_surface_ = output_surface; | 2263 output_surface_ = output_surface; |
2264 resource_provider_ = ResourceProvider::Create( | 2264 resource_provider_ = ResourceProvider::Create( |
2265 output_surface_, shared_bitmap_manager_, gpu_memory_buffer_manager_, | 2265 output_surface_, shared_bitmap_manager_, gpu_memory_buffer_manager_, |
2266 task_runner_provider_->blocking_main_thread_task_runner(), | 2266 task_runner_provider_->blocking_main_thread_task_runner(), |
2267 settings_.renderer_settings.highp_threshold_min, | 2267 settings_.renderer_settings.highp_threshold_min, |
2268 settings_.renderer_settings.texture_id_allocation_chunk_size, | 2268 settings_.renderer_settings.texture_id_allocation_chunk_size, |
| 2269 settings_.renderer_settings.use_gpu_memory_buffer_resources, |
2269 settings_.use_image_texture_targets); | 2270 settings_.use_image_texture_targets); |
2270 | 2271 |
2271 CreateAndSetRenderer(); | 2272 CreateAndSetRenderer(); |
2272 | 2273 |
2273 // Since the new renderer may be capable of MSAA, update status here. | 2274 // Since the new renderer may be capable of MSAA, update status here. |
2274 UpdateGpuRasterizationStatus(); | 2275 UpdateGpuRasterizationStatus(); |
2275 | 2276 |
2276 CreateTileManagerResources(); | 2277 CreateTileManagerResources(); |
2277 RecreateTreeResources(); | 2278 RecreateTreeResources(); |
2278 | 2279 |
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3687 return task_runner_provider_->HasImplThread(); | 3688 return task_runner_provider_->HasImplThread(); |
3688 } | 3689 } |
3689 | 3690 |
3690 bool LayerTreeHostImpl::CommitToActiveTree() const { | 3691 bool LayerTreeHostImpl::CommitToActiveTree() const { |
3691 // In single threaded mode we skip the pending tree and commit directly to the | 3692 // In single threaded mode we skip the pending tree and commit directly to the |
3692 // active tree. | 3693 // active tree. |
3693 return !task_runner_provider_->HasImplThread(); | 3694 return !task_runner_provider_->HasImplThread(); |
3694 } | 3695 } |
3695 | 3696 |
3696 } // namespace cc | 3697 } // namespace cc |
OLD | NEW |