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 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); | 337 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); |
338 settings.use_distance_field_text = | 338 settings.use_distance_field_text = |
339 compositor_deps->IsDistanceFieldTextEnabled(); | 339 compositor_deps->IsDistanceFieldTextEnabled(); |
340 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); | 340 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); |
341 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); | 341 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); |
342 settings.enable_elastic_overscroll = | 342 settings.enable_elastic_overscroll = |
343 compositor_deps->IsElasticOverscrollEnabled(); | 343 compositor_deps->IsElasticOverscrollEnabled(); |
344 settings.renderer_settings.use_gpu_memory_buffer_resources = | 344 settings.renderer_settings.use_gpu_memory_buffer_resources = |
345 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); | 345 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); |
346 settings.enable_color_correct_rendering = | 346 settings.enable_color_correct_rendering = |
347 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering); | 347 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering) || |
| 348 cmd.HasSwitch(cc::switches::kEnableTrueColorRendering); |
348 settings.renderer_settings.buffer_to_texture_target_map = | 349 settings.renderer_settings.buffer_to_texture_target_map = |
349 compositor_deps->GetBufferToTextureTargetMap(); | 350 compositor_deps->GetBufferToTextureTargetMap(); |
350 settings.image_decode_tasks_enabled = | 351 settings.image_decode_tasks_enabled = |
351 compositor_deps->AreImageDecodeTasksEnabled(); | 352 compositor_deps->AreImageDecodeTasksEnabled(); |
352 | 353 |
353 // Build LayerTreeSettings from command line args. | 354 // Build LayerTreeSettings from command line args. |
354 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); | 355 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); |
355 | 356 |
356 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); | 357 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); |
357 | 358 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 float device_scale) { | 1141 float device_scale) { |
1141 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); | 1142 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); |
1142 } | 1143 } |
1143 | 1144 |
1144 void RenderWidgetCompositor::SetDeviceColorSpace( | 1145 void RenderWidgetCompositor::SetDeviceColorSpace( |
1145 const gfx::ColorSpace& color_space) { | 1146 const gfx::ColorSpace& color_space) { |
1146 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); | 1147 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); |
1147 } | 1148 } |
1148 | 1149 |
1149 } // namespace content | 1150 } // namespace content |
OLD | NEW |