| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2320 if (!compositor_frame_sink->context_provider()) | 2320 if (!compositor_frame_sink->context_provider()) |
| 2321 SetMemoryPolicy(settings_.software_memory_policy); | 2321 SetMemoryPolicy(settings_.software_memory_policy); |
| 2322 | 2322 |
| 2323 compositor_frame_sink_ = compositor_frame_sink; | 2323 compositor_frame_sink_ = compositor_frame_sink; |
| 2324 has_valid_compositor_frame_sink_ = true; | 2324 has_valid_compositor_frame_sink_ = true; |
| 2325 resource_provider_ = base::MakeUnique<ResourceProvider>( | 2325 resource_provider_ = base::MakeUnique<ResourceProvider>( |
| 2326 compositor_frame_sink_->context_provider(), | 2326 compositor_frame_sink_->context_provider(), |
| 2327 compositor_frame_sink_->shared_bitmap_manager(), | 2327 compositor_frame_sink_->shared_bitmap_manager(), |
| 2328 compositor_frame_sink_->gpu_memory_buffer_manager(), | 2328 compositor_frame_sink_->gpu_memory_buffer_manager(), |
| 2329 task_runner_provider_->blocking_main_thread_task_runner(), | 2329 task_runner_provider_->blocking_main_thread_task_runner(), |
| 2330 settings_.renderer_settings.highp_threshold_min, | |
| 2331 settings_.renderer_settings.texture_id_allocation_chunk_size, | 2330 settings_.renderer_settings.texture_id_allocation_chunk_size, |
| 2332 compositor_frame_sink_->capabilities().delegated_sync_points_required, | 2331 compositor_frame_sink_->capabilities().delegated_sync_points_required, |
| 2333 settings_.renderer_settings.use_gpu_memory_buffer_resources, | 2332 settings_.renderer_settings.use_gpu_memory_buffer_resources, |
| 2334 settings_.enable_color_correct_rendering, | 2333 settings_.enable_color_correct_rendering, |
| 2335 settings_.renderer_settings.buffer_to_texture_target_map); | 2334 settings_.renderer_settings.buffer_to_texture_target_map); |
| 2336 | 2335 |
| 2337 // Since the new context may be capable of MSAA, update status here. We don't | 2336 // Since the new context may be capable of MSAA, update status here. We don't |
| 2338 // need to check the return value since we are recreating all resources | 2337 // need to check the return value since we are recreating all resources |
| 2339 // already. | 2338 // already. |
| 2340 UpdateGpuRasterizationStatus(); | 2339 UpdateGpuRasterizationStatus(); |
| (...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4086 worker_context_visibility_ = | 4085 worker_context_visibility_ = |
| 4087 worker_context->CacheController()->ClientBecameVisible(); | 4086 worker_context->CacheController()->ClientBecameVisible(); |
| 4088 } else { | 4087 } else { |
| 4089 worker_context->CacheController()->ClientBecameNotVisible( | 4088 worker_context->CacheController()->ClientBecameNotVisible( |
| 4090 std::move(worker_context_visibility_)); | 4089 std::move(worker_context_visibility_)); |
| 4091 } | 4090 } |
| 4092 } | 4091 } |
| 4093 } | 4092 } |
| 4094 | 4093 |
| 4095 } // namespace cc | 4094 } // namespace cc |
| OLD | NEW |