Chromium Code Reviews| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 308 settings.top_controls_hide_threshold = hide_threshold; | 308 settings.top_controls_hide_threshold = hide_threshold; |
| 309 } | 309 } |
| 310 | 310 |
| 311 settings.use_pinch_virtual_viewport = | 311 settings.use_pinch_virtual_viewport = |
| 312 cmd->HasSwitch(cc::switches::kEnablePinchVirtualViewport); | 312 cmd->HasSwitch(cc::switches::kEnablePinchVirtualViewport); |
| 313 settings.verify_property_trees = | 313 settings.verify_property_trees = |
| 314 cmd->HasSwitch(cc::switches::kEnablePropertyTreeVerification) && | 314 cmd->HasSwitch(cc::switches::kEnablePropertyTreeVerification) && |
| 315 settings.impl_side_painting; | 315 settings.impl_side_painting; |
| 316 settings.renderer_settings.allow_antialiasing &= | 316 settings.renderer_settings.allow_antialiasing &= |
| 317 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing); | 317 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing); |
| 318 settings.single_thread_proxy_scheduler = | 318 // Using the scheduler in layout tests (the only time we're single threaded |
| 319 compositor_deps_->UseSingleThreadScheduler(); | 319 // here) introduces additional composite steps that create flakiness. |
| 320 settings.single_thread_proxy_scheduler = false; | |
|
enne (OOO)
2015/05/20 19:05:23
Can you leave a comment here that this means that
danakj
2015/05/20 19:07:38
Done.
| |
| 320 | 321 |
| 321 // These flags should be mirrored by UI versions in ui/compositor/. | 322 // These flags should be mirrored by UI versions in ui/compositor/. |
| 322 settings.initial_debug_state.show_debug_borders = | 323 settings.initial_debug_state.show_debug_borders = |
| 323 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders); | 324 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders); |
| 324 settings.initial_debug_state.show_fps_counter = | 325 settings.initial_debug_state.show_fps_counter = |
| 325 cmd->HasSwitch(cc::switches::kShowFPSCounter); | 326 cmd->HasSwitch(cc::switches::kShowFPSCounter); |
| 326 settings.initial_debug_state.show_layer_animation_bounds_rects = | 327 settings.initial_debug_state.show_layer_animation_bounds_rects = |
| 327 cmd->HasSwitch(cc::switches::kShowLayerAnimationBounds); | 328 cmd->HasSwitch(cc::switches::kShowLayerAnimationBounds); |
| 328 settings.initial_debug_state.show_paint_rects = | 329 settings.initial_debug_state.show_paint_rects = |
| 329 cmd->HasSwitch(switches::kShowPaintRects); | 330 cmd->HasSwitch(switches::kShowPaintRects); |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 964 return; | 965 return; |
| 965 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 966 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 966 } | 967 } |
| 967 | 968 |
| 968 void RenderWidgetCompositor::SetSurfaceIdNamespace( | 969 void RenderWidgetCompositor::SetSurfaceIdNamespace( |
| 969 uint32_t surface_id_namespace) { | 970 uint32_t surface_id_namespace) { |
| 970 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); | 971 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); |
| 971 } | 972 } |
| 972 | 973 |
| 973 } // namespace content | 974 } // namespace content |
| OLD | NEW |