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

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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Cleanup 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
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = 389 settings.buffer_to_texture_target_map =
390 cmd.HasSwitch(switches::kEnableColorCorrectRendering);
danakj 2017/05/25 15:27:18 Where does this get initialized?
Alex Z. 2017/05/25 17:39:15 I must have deleted this by mistake. Thanks for po
391 settings.renderer_settings.buffer_to_texture_target_map =
392 compositor_deps->GetBufferToTextureTargetMap(); 390 compositor_deps->GetBufferToTextureTargetMap();
393 391
394 // Build LayerTreeSettings from command line args. 392 // Build LayerTreeSettings from command line args.
395 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); 393 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd);
396 394
397 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); 395 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists);
398 396
399 settings.renderer_settings.allow_antialiasing &= 397 settings.renderer_settings.allow_antialiasing &=
400 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing); 398 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing);
401 // The means the renderer compositor has 2 possible modes: 399 // The means the renderer compositor has 2 possible modes:
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 const cc::LocalSurfaceId& local_surface_id) { 1229 const cc::LocalSurfaceId& local_surface_id) {
1232 layer_tree_host_->SetLocalSurfaceId(local_surface_id); 1230 layer_tree_host_->SetLocalSurfaceId(local_surface_id);
1233 } 1231 }
1234 1232
1235 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { 1233 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) {
1236 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( 1234 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>(
1237 std::move(callback), base::ThreadTaskRunnerHandle::Get())); 1235 std::move(callback), base::ThreadTaskRunnerHandle::Get()));
1238 } 1236 }
1239 1237
1240 } // namespace content 1238 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698