OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); | 323 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); |
324 settings.use_distance_field_text = | 324 settings.use_distance_field_text = |
325 compositor_deps->IsDistanceFieldTextEnabled(); | 325 compositor_deps->IsDistanceFieldTextEnabled(); |
326 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); | 326 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); |
327 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); | 327 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); |
328 settings.enable_elastic_overscroll = | 328 settings.enable_elastic_overscroll = |
329 compositor_deps->IsElasticOverscrollEnabled(); | 329 compositor_deps->IsElasticOverscrollEnabled(); |
330 settings.renderer_settings.use_gpu_memory_buffer_resources = | 330 settings.renderer_settings.use_gpu_memory_buffer_resources = |
331 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); | 331 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); |
332 settings.enable_color_correct_rasterization = | 332 settings.enable_color_correct_rasterization = |
333 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering) || | 333 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering); |
334 cmd.HasSwitch(cc::switches::kEnableTrueColorRendering); | |
335 settings.renderer_settings.buffer_to_texture_target_map = | 334 settings.renderer_settings.buffer_to_texture_target_map = |
336 compositor_deps->GetBufferToTextureTargetMap(); | 335 compositor_deps->GetBufferToTextureTargetMap(); |
337 settings.image_decode_tasks_enabled = | 336 settings.image_decode_tasks_enabled = |
338 compositor_deps->AreImageDecodeTasksEnabled(); | 337 compositor_deps->AreImageDecodeTasksEnabled(); |
339 | 338 |
340 // Build LayerTreeSettings from command line args. | 339 // Build LayerTreeSettings from command line args. |
341 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); | 340 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); |
342 | 341 |
343 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); | 342 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); |
344 | 343 |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) { | 1141 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) { |
1143 layer_tree_host_->SetContentSourceId(id); | 1142 layer_tree_host_->SetContentSourceId(id); |
1144 } | 1143 } |
1145 | 1144 |
1146 void RenderWidgetCompositor::SetLocalSurfaceId( | 1145 void RenderWidgetCompositor::SetLocalSurfaceId( |
1147 const cc::LocalSurfaceId& local_surface_id) { | 1146 const cc::LocalSurfaceId& local_surface_id) { |
1148 layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 1147 layer_tree_host_->SetLocalSurfaceId(local_surface_id); |
1149 } | 1148 } |
1150 | 1149 |
1151 } // namespace content | 1150 } // namespace content |
OLD | NEW |