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 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 &max_untiled_layer_height); | 306 &max_untiled_layer_height); |
307 } | 307 } |
308 | 308 |
309 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, | 309 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, |
310 max_untiled_layer_height); | 310 max_untiled_layer_height); |
311 | 311 |
312 settings.gpu_rasterization_msaa_sample_count = | 312 settings.gpu_rasterization_msaa_sample_count = |
313 compositor_deps->GetGpuRasterizationMSAASampleCount(); | 313 compositor_deps->GetGpuRasterizationMSAASampleCount(); |
314 settings.gpu_rasterization_forced = | 314 settings.gpu_rasterization_forced = |
315 compositor_deps->IsGpuRasterizationForced(); | 315 compositor_deps->IsGpuRasterizationForced(); |
316 settings.gpu_rasterization_enabled = | |
317 compositor_deps->IsGpuRasterizationEnabled(); | |
318 settings.async_worker_context_enabled = | 316 settings.async_worker_context_enabled = |
319 compositor_deps->IsAsyncWorkerContextEnabled(); | 317 compositor_deps->IsAsyncWorkerContextEnabled(); |
320 | 318 |
321 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); | 319 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); |
322 settings.use_distance_field_text = | 320 settings.use_distance_field_text = |
323 compositor_deps->IsDistanceFieldTextEnabled(); | 321 compositor_deps->IsDistanceFieldTextEnabled(); |
324 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); | 322 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); |
325 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); | 323 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); |
326 settings.enable_elastic_overscroll = | 324 settings.enable_elastic_overscroll = |
327 compositor_deps->IsElasticOverscrollEnabled(); | 325 compositor_deps->IsElasticOverscrollEnabled(); |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 void RenderWidgetCompositor::SetDeviceColorSpace( | 1125 void RenderWidgetCompositor::SetDeviceColorSpace( |
1128 const gfx::ColorSpace& color_space) { | 1126 const gfx::ColorSpace& color_space) { |
1129 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); | 1127 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); |
1130 } | 1128 } |
1131 | 1129 |
1132 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { | 1130 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { |
1133 is_for_oopif_ = is_for_oopif; | 1131 is_for_oopif_ = is_for_oopif; |
1134 } | 1132 } |
1135 | 1133 |
1136 } // namespace content | 1134 } // namespace content |
OLD | NEW |