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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 settings.use_distance_field_text = | 379 settings.use_distance_field_text = |
380 compositor_deps->IsDistanceFieldTextEnabled(); | 380 compositor_deps->IsDistanceFieldTextEnabled(); |
381 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); | 381 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); |
382 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); | 382 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); |
383 settings.enable_elastic_overscroll = | 383 settings.enable_elastic_overscroll = |
384 compositor_deps->IsElasticOverscrollEnabled(); | 384 compositor_deps->IsElasticOverscrollEnabled(); |
385 settings.renderer_settings.use_gpu_memory_buffer_resources = | 385 settings.renderer_settings.use_gpu_memory_buffer_resources = |
386 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); | 386 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); |
387 settings.enable_color_correct_rasterization = | 387 settings.enable_color_correct_rasterization = |
388 cmd.HasSwitch(switches::kEnableColorCorrectRendering); | 388 cmd.HasSwitch(switches::kEnableColorCorrectRendering); |
| 389 settings.renderer_settings.enable_color_correct_rendering = |
| 390 cmd.HasSwitch(switches::kEnableColorCorrectRendering); |
389 settings.renderer_settings.buffer_to_texture_target_map = | 391 settings.renderer_settings.buffer_to_texture_target_map = |
390 compositor_deps->GetBufferToTextureTargetMap(); | 392 compositor_deps->GetBufferToTextureTargetMap(); |
391 | 393 |
392 // Build LayerTreeSettings from command line args. | 394 // Build LayerTreeSettings from command line args. |
393 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); | 395 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); |
394 | 396 |
395 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); | 397 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); |
396 | 398 |
397 settings.renderer_settings.allow_antialiasing &= | 399 settings.renderer_settings.allow_antialiasing &= |
398 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing); | 400 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing); |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 const cc::LocalSurfaceId& local_surface_id) { | 1214 const cc::LocalSurfaceId& local_surface_id) { |
1213 layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 1215 layer_tree_host_->SetLocalSurfaceId(local_surface_id); |
1214 } | 1216 } |
1215 | 1217 |
1216 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { | 1218 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { |
1217 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( | 1219 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( |
1218 std::move(callback), base::ThreadTaskRunnerHandle::Get())); | 1220 std::move(callback), base::ThreadTaskRunnerHandle::Get())); |
1219 } | 1221 } |
1220 | 1222 |
1221 } // namespace content | 1223 } // namespace content |
OLD | NEW |