| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" | 5 #include "ui/compositor/compositor.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 settings.partial_swap_enabled = | 265 settings.partial_swap_enabled = |
| 266 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap); | 266 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap); |
| 267 settings.per_tile_painting_enabled = | 267 settings.per_tile_painting_enabled = |
| 268 command_line->HasSwitch(cc::switches::kUIEnablePerTilePainting); | 268 command_line->HasSwitch(cc::switches::kUIEnablePerTilePainting); |
| 269 | 269 |
| 270 // These flags should be mirrored by renderer versions in content/renderer/. | 270 // These flags should be mirrored by renderer versions in content/renderer/. |
| 271 settings.initial_debug_state.show_debug_borders = | 271 settings.initial_debug_state.show_debug_borders = |
| 272 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); | 272 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); |
| 273 settings.initial_debug_state.show_fps_counter = | 273 settings.initial_debug_state.show_fps_counter = |
| 274 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); | 274 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); |
| 275 settings.initial_debug_state.show_layer_animation_bounds_rects = |
| 276 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); |
| 275 settings.initial_debug_state.show_paint_rects = | 277 settings.initial_debug_state.show_paint_rects = |
| 276 command_line->HasSwitch(switches::kUIShowPaintRects); | 278 command_line->HasSwitch(switches::kUIShowPaintRects); |
| 277 settings.initial_debug_state.show_property_changed_rects = | 279 settings.initial_debug_state.show_property_changed_rects = |
| 278 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); | 280 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); |
| 279 settings.initial_debug_state.show_surface_damage_rects = | 281 settings.initial_debug_state.show_surface_damage_rects = |
| 280 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); | 282 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); |
| 281 settings.initial_debug_state.show_screen_space_rects = | 283 settings.initial_debug_state.show_screen_space_rects = |
| 282 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); | 284 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); |
| 283 settings.initial_debug_state.show_replica_screen_space_rects = | 285 settings.initial_debug_state.show_replica_screen_space_rects = |
| 284 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); | 286 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 // CompositorObservers to be notified before starting another | 625 // CompositorObservers to be notified before starting another |
| 624 // draw cycle. | 626 // draw cycle. |
| 625 ScheduleDraw(); | 627 ScheduleDraw(); |
| 626 } | 628 } |
| 627 FOR_EACH_OBSERVER(CompositorObserver, | 629 FOR_EACH_OBSERVER(CompositorObserver, |
| 628 observer_list_, | 630 observer_list_, |
| 629 OnCompositingEnded(this)); | 631 OnCompositingEnded(this)); |
| 630 } | 632 } |
| 631 | 633 |
| 632 } // namespace ui | 634 } // namespace ui |
| OLD | NEW |