| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 settings.gpu_rasterization_enabled = | 293 settings.gpu_rasterization_enabled = |
| 294 compositor_deps_->IsGpuRasterizationEnabled(); | 294 compositor_deps_->IsGpuRasterizationEnabled(); |
| 295 | 295 |
| 296 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); | 296 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); |
| 297 settings.use_distance_field_text = | 297 settings.use_distance_field_text = |
| 298 compositor_deps_->IsDistanceFieldTextEnabled(); | 298 compositor_deps_->IsDistanceFieldTextEnabled(); |
| 299 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); | 299 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); |
| 300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); | 300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); |
| 301 settings.enable_elastic_overscroll = | 301 settings.enable_elastic_overscroll = |
| 302 compositor_deps_->IsElasticOverscrollEnabled(); | 302 compositor_deps_->IsElasticOverscrollEnabled(); |
| 303 settings.renderer_settings.use_gpu_memory_buffers_by_default = |
| 304 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled(); |
| 303 settings.use_image_texture_targets = | 305 settings.use_image_texture_targets = |
| 304 compositor_deps_->GetImageTextureTargets(); | 306 compositor_deps_->GetImageTextureTargets(); |
| 305 settings.image_decode_tasks_enabled = | 307 settings.image_decode_tasks_enabled = |
| 306 compositor_deps_->AreImageDecodeTasksEnabled(); | 308 compositor_deps_->AreImageDecodeTasksEnabled(); |
| 307 | 309 |
| 308 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { | 310 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { |
| 309 std::string top_threshold_str = | 311 std::string top_threshold_str = |
| 310 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); | 312 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); |
| 311 double show_threshold; | 313 double show_threshold; |
| 312 if (base::StringToDouble(top_threshold_str, &show_threshold) && | 314 if (base::StringToDouble(top_threshold_str, &show_threshold) && |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 #endif | 1081 #endif |
| 1080 return actual; | 1082 return actual; |
| 1081 } | 1083 } |
| 1082 | 1084 |
| 1083 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1085 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
| 1084 float device_scale) { | 1086 float device_scale) { |
| 1085 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1087 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
| 1086 } | 1088 } |
| 1087 | 1089 |
| 1088 } // namespace content | 1090 } // namespace content |
| OLD | NEW |