| 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 <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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, | 287 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, |
| 288 max_untiled_layer_height); | 288 max_untiled_layer_height); |
| 289 | 289 |
| 290 settings.gpu_rasterization_msaa_sample_count = | 290 settings.gpu_rasterization_msaa_sample_count = |
| 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 settings.async_worker_context_enabled = |
| 297 compositor_deps_->IsAsyncWorkerContextEnabled(); |
| 296 | 298 |
| 297 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); | 299 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); |
| 298 settings.use_distance_field_text = | 300 settings.use_distance_field_text = |
| 299 compositor_deps_->IsDistanceFieldTextEnabled(); | 301 compositor_deps_->IsDistanceFieldTextEnabled(); |
| 300 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); | 302 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); |
| 301 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); | 303 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); |
| 302 settings.enable_elastic_overscroll = | 304 settings.enable_elastic_overscroll = |
| 303 compositor_deps_->IsElasticOverscrollEnabled(); | 305 compositor_deps_->IsElasticOverscrollEnabled(); |
| 304 settings.renderer_settings.use_gpu_memory_buffer_resources = | 306 settings.renderer_settings.use_gpu_memory_buffer_resources = |
| 305 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled(); | 307 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled(); |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 #endif | 1123 #endif |
| 1122 return actual; | 1124 return actual; |
| 1123 } | 1125 } |
| 1124 | 1126 |
| 1125 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1127 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
| 1126 float device_scale) { | 1128 float device_scale) { |
| 1127 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1129 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
| 1128 } | 1130 } |
| 1129 | 1131 |
| 1130 } // namespace content | 1132 } // namespace content |
| OLD | NEW |