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

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

Issue 2612123002: cc: Add a flag to check for tile priority inversion in AssignGpuMemory. (Closed)
Patch Set: master: compile_fix Created 3 years, 11 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/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | 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 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 compositor_deps->IsElasticOverscrollEnabled(); 344 compositor_deps->IsElasticOverscrollEnabled();
345 settings.renderer_settings.use_gpu_memory_buffer_resources = 345 settings.renderer_settings.use_gpu_memory_buffer_resources =
346 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); 346 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled();
347 settings.enable_color_correct_rendering = 347 settings.enable_color_correct_rendering =
348 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering) || 348 cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
349 cmd.HasSwitch(cc::switches::kEnableTrueColorRendering); 349 cmd.HasSwitch(cc::switches::kEnableTrueColorRendering);
350 settings.renderer_settings.buffer_to_texture_target_map = 350 settings.renderer_settings.buffer_to_texture_target_map =
351 compositor_deps->GetBufferToTextureTargetMap(); 351 compositor_deps->GetBufferToTextureTargetMap();
352 settings.image_decode_tasks_enabled = 352 settings.image_decode_tasks_enabled =
353 compositor_deps->AreImageDecodeTasksEnabled(); 353 compositor_deps->AreImageDecodeTasksEnabled();
354 settings.check_tile_priority_inversion =
355 cmd.HasSwitch(cc::switches::kCheckTilePriorityInversion);
354 356
355 // Build LayerTreeSettings from command line args. 357 // Build LayerTreeSettings from command line args.
356 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd); 358 LayerTreeSettingsFactory::SetBrowserControlsSettings(settings, cmd);
357 359
358 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists); 360 settings.use_layer_lists = cmd.HasSwitch(cc::switches::kEnableLayerLists);
359 361
360 settings.renderer_settings.allow_antialiasing &= 362 settings.renderer_settings.allow_antialiasing &=
361 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing); 363 !cmd.HasSwitch(cc::switches::kDisableCompositedAntialiasing);
362 // The means the renderer compositor has 2 possible modes: 364 // The means the renderer compositor has 2 possible modes:
363 // - Threaded compositing with a scheduler. 365 // - Threaded compositing with a scheduler.
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 float device_scale) { 1134 float device_scale) {
1133 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); 1135 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale);
1134 } 1136 }
1135 1137
1136 void RenderWidgetCompositor::SetDeviceColorSpace( 1138 void RenderWidgetCompositor::SetDeviceColorSpace(
1137 const gfx::ColorSpace& color_space) { 1139 const gfx::ColorSpace& color_space) {
1138 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); 1140 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space);
1139 } 1141 }
1140 1142
1141 } // namespace content 1143 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698