Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2781183002: Remove image_decode_tasks_enabled flag. (Closed)
Patch Set: fixes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); 332 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled();
333 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); 333 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled();
334 settings.enable_elastic_overscroll = 334 settings.enable_elastic_overscroll =
335 compositor_deps->IsElasticOverscrollEnabled(); 335 compositor_deps->IsElasticOverscrollEnabled();
336 settings.renderer_settings.use_gpu_memory_buffer_resources = 336 settings.renderer_settings.use_gpu_memory_buffer_resources =
337 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); 337 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled();
338 settings.enable_color_correct_rasterization = 338 settings.enable_color_correct_rasterization =
339 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering); 339 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering);
340 settings.renderer_settings.buffer_to_texture_target_map = 340 settings.renderer_settings.buffer_to_texture_target_map =
341 compositor_deps->GetBufferToTextureTargetMap(); 341 compositor_deps->GetBufferToTextureTargetMap();
342 settings.image_decode_tasks_enabled =
343 compositor_deps->AreImageDecodeTasksEnabled();
344 342
345 // Build LayerTreeSettings from command line args. 343 // Build LayerTreeSettings from command line args.
346 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); 344 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd);
347 345
348 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); 346 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists);
349 347
350 settings.renderer_settings.allow_antialiasing &= 348 settings.renderer_settings.allow_antialiasing &=
351 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing); 349 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing);
352 // The means the renderer compositor has 2 possible modes: 350 // The means the renderer compositor has 2 possible modes:
353 // - Threaded compositing with a scheduler. 351 // - Threaded compositing with a scheduler.
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) { 1151 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) {
1154 layer_tree_host_->SetContentSourceId(id); 1152 layer_tree_host_->SetContentSourceId(id);
1155 } 1153 }
1156 1154
1157 void RenderWidgetCompositor::SetLocalSurfaceId( 1155 void RenderWidgetCompositor::SetLocalSurfaceId(
1158 const cc::LocalSurfaceId& local_surface_id) { 1156 const cc::LocalSurfaceId& local_surface_id) {
1159 layer_tree_host_->SetLocalSurfaceId(local_surface_id); 1157 layer_tree_host_->SetLocalSurfaceId(local_surface_id);
1160 } 1158 }
1161 1159
1162 } // namespace content 1160 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698