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 <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 Loading... |
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 Loading... |
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 |
OLD | NEW |