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

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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback + UT refactoring Created 5 years, 2 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 <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 compositor_deps_->GetGpuRasterizationMSAASampleCount(); 291 compositor_deps_->GetGpuRasterizationMSAASampleCount();
292 settings.gpu_rasterization_forced = 292 settings.gpu_rasterization_forced =
293 compositor_deps_->IsGpuRasterizationForced(); 293 compositor_deps_->IsGpuRasterizationForced();
294 settings.gpu_rasterization_enabled = 294 settings.gpu_rasterization_enabled =
295 compositor_deps_->IsGpuRasterizationEnabled(); 295 compositor_deps_->IsGpuRasterizationEnabled();
296 296
297 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 297 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
298 settings.use_distance_field_text = 298 settings.use_distance_field_text =
299 compositor_deps_->IsDistanceFieldTextEnabled(); 299 compositor_deps_->IsDistanceFieldTextEnabled();
300 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 300 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
301 settings.use_persistent_map_for_gpu_memory_buffers = 301 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled();
302 compositor_deps_->IsPersistentGpuMemoryBufferEnabled();
303 settings.enable_elastic_overscroll = 302 settings.enable_elastic_overscroll =
304 compositor_deps_->IsElasticOverscrollEnabled(); 303 compositor_deps_->IsElasticOverscrollEnabled();
305 settings.use_image_texture_targets = 304 settings.use_image_texture_targets =
306 compositor_deps_->GetImageTextureTargets(); 305 compositor_deps_->GetImageTextureTargets();
307 settings.image_decode_tasks_enabled = 306 settings.image_decode_tasks_enabled =
308 compositor_deps_->AreImageDecodeTasksEnabled(); 307 compositor_deps_->AreImageDecodeTasksEnabled();
309 308
310 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 309 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
311 std::string top_threshold_str = 310 std::string top_threshold_str =
312 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 311 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 // Ignore what the system said and give all clients the same maximum 1085 // Ignore what the system said and give all clients the same maximum
1087 // allocation on desktop platforms. 1086 // allocation on desktop platforms.
1088 actual.bytes_limit_when_visible = 512 * 1024 * 1024; 1087 actual.bytes_limit_when_visible = 512 * 1024 * 1024;
1089 actual.priority_cutoff_when_visible = 1088 actual.priority_cutoff_when_visible =
1090 gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE; 1089 gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE;
1091 #endif 1090 #endif
1092 return actual; 1091 return actual;
1093 } 1092 }
1094 1093
1095 } // namespace content 1094 } // 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