| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 command_line->HasSwitch(switches::kUIShowPaintRects); | 119 command_line->HasSwitch(switches::kUIShowPaintRects); |
| 120 settings.initial_debug_state.show_property_changed_rects = | 120 settings.initial_debug_state.show_property_changed_rects = |
| 121 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); | 121 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); |
| 122 settings.initial_debug_state.show_surface_damage_rects = | 122 settings.initial_debug_state.show_surface_damage_rects = |
| 123 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); | 123 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); |
| 124 settings.initial_debug_state.show_screen_space_rects = | 124 settings.initial_debug_state.show_screen_space_rects = |
| 125 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); | 125 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); |
| 126 | 126 |
| 127 settings.initial_debug_state.SetRecordRenderingStats( | 127 settings.initial_debug_state.SetRecordRenderingStats( |
| 128 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); | 128 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); |
| 129 settings.needs_valid_local_surface_id = | 129 settings.enable_surface_synchronization = |
| 130 command_line->HasSwitch(cc::switches::kEnableSurfaceSynchronization); | 130 command_line->HasSwitch(cc::switches::kEnableSurfaceSynchronization); |
| 131 | 131 |
| 132 settings.use_zero_copy = IsUIZeroCopyEnabled(); | 132 settings.use_zero_copy = IsUIZeroCopyEnabled(); |
| 133 | 133 |
| 134 if (command_line->HasSwitch(switches::kUIEnableRGBA4444Textures)) | 134 if (command_line->HasSwitch(switches::kUIEnableRGBA4444Textures)) |
| 135 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; | 135 settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; |
| 136 | 136 |
| 137 settings.use_layer_lists = | 137 settings.use_layer_lists = |
| 138 command_line->HasSwitch(cc::switches::kUIEnableLayerLists); | 138 command_line->HasSwitch(cc::switches::kUIEnableLayerLists); |
| 139 | 139 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 void Compositor::TimeoutLocks() { | 570 void Compositor::TimeoutLocks() { |
| 571 // Make a copy, we're going to cause |active_locks_| to become | 571 // Make a copy, we're going to cause |active_locks_| to become |
| 572 // empty. | 572 // empty. |
| 573 std::vector<CompositorLock*> locks = active_locks_; | 573 std::vector<CompositorLock*> locks = active_locks_; |
| 574 for (auto* lock : locks) | 574 for (auto* lock : locks) |
| 575 lock->TimeoutLock(); | 575 lock->TimeoutLock(); |
| 576 DCHECK(active_locks_.empty()); | 576 DCHECK(active_locks_.empty()); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace ui | 579 } // namespace ui |
| OLD | NEW |