| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1, | 270 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1, |
| 271 std::numeric_limits<int>::max(), | 271 std::numeric_limits<int>::max(), |
| 272 &max_untiled_layer_height); | 272 &max_untiled_layer_height); |
| 273 } | 273 } |
| 274 | 274 |
| 275 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, | 275 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, |
| 276 max_untiled_layer_height); | 276 max_untiled_layer_height); |
| 277 | 277 |
| 278 settings.gpu_rasterization_msaa_sample_count = | 278 settings.gpu_rasterization_msaa_sample_count = |
| 279 compositor_deps_->GetGpuRasterizationMSAASampleCount(); | 279 compositor_deps_->GetGpuRasterizationMSAASampleCount(); |
| 280 settings.impl_side_painting = compositor_deps_->IsImplSidePaintingEnabled(); | 280 settings.impl_side_painting = true; |
| 281 settings.gpu_rasterization_forced = | 281 settings.gpu_rasterization_forced = |
| 282 compositor_deps_->IsGpuRasterizationForced(); | 282 compositor_deps_->IsGpuRasterizationForced(); |
| 283 settings.gpu_rasterization_enabled = | 283 settings.gpu_rasterization_enabled = |
| 284 compositor_deps_->IsGpuRasterizationEnabled(); | 284 compositor_deps_->IsGpuRasterizationEnabled(); |
| 285 | 285 |
| 286 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); | 286 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); |
| 287 settings.use_distance_field_text = | 287 settings.use_distance_field_text = |
| 288 compositor_deps_->IsDistanceFieldTextEnabled(); | 288 compositor_deps_->IsDistanceFieldTextEnabled(); |
| 289 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); | 289 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); |
| 290 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); | 290 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 return; | 1001 return; |
| 1002 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 1002 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 void RenderWidgetCompositor::SetSurfaceIdNamespace( | 1005 void RenderWidgetCompositor::SetSurfaceIdNamespace( |
| 1006 uint32_t surface_id_namespace) { | 1006 uint32_t surface_id_namespace) { |
| 1007 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); | 1007 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 } // namespace content | 1010 } // namespace content |
| OLD | NEW |