| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 compositor_deps_->GetGpuRasterizationMSAASampleCount(); | 295 compositor_deps_->GetGpuRasterizationMSAASampleCount(); |
| 296 settings.gpu_rasterization_forced = | 296 settings.gpu_rasterization_forced = |
| 297 compositor_deps_->IsGpuRasterizationForced(); | 297 compositor_deps_->IsGpuRasterizationForced(); |
| 298 settings.gpu_rasterization_enabled = | 298 settings.gpu_rasterization_enabled = |
| 299 compositor_deps_->IsGpuRasterizationEnabled(); | 299 compositor_deps_->IsGpuRasterizationEnabled(); |
| 300 | 300 |
| 301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); | 301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); |
| 302 settings.use_distance_field_text = | 302 settings.use_distance_field_text = |
| 303 compositor_deps_->IsDistanceFieldTextEnabled(); | 303 compositor_deps_->IsDistanceFieldTextEnabled(); |
| 304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); | 304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); |
| 305 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); | |
| 306 settings.use_persistent_map_for_gpu_memory_buffers = | 305 settings.use_persistent_map_for_gpu_memory_buffers = |
| 307 compositor_deps_->IsPersistentGpuMemoryBufferEnabled(); | 306 compositor_deps_->IsPersistentGpuMemoryBufferEnabled(); |
| 308 settings.enable_elastic_overscroll = | 307 settings.enable_elastic_overscroll = |
| 309 compositor_deps_->IsElasticOverscrollEnabled(); | 308 compositor_deps_->IsElasticOverscrollEnabled(); |
| 310 settings.use_image_texture_targets = | 309 settings.use_image_texture_targets = |
| 311 compositor_deps_->GetImageTextureTargets(); | 310 compositor_deps_->GetImageTextureTargets(); |
| 312 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); | 311 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); |
| 313 | 312 |
| 314 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { | 313 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { |
| 315 std::string top_threshold_str = | 314 std::string top_threshold_str = |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 return; | 1042 return; |
| 1044 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 1043 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 1045 } | 1044 } |
| 1046 | 1045 |
| 1047 void RenderWidgetCompositor::SetSurfaceIdNamespace( | 1046 void RenderWidgetCompositor::SetSurfaceIdNamespace( |
| 1048 uint32_t surface_id_namespace) { | 1047 uint32_t surface_id_namespace) { |
| 1049 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); | 1048 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); |
| 1050 } | 1049 } |
| 1051 | 1050 |
| 1052 } // namespace content | 1051 } // namespace content |
| OLD | NEW |