| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 settings.renderer_settings.partial_swap_enabled = | 133 settings.renderer_settings.partial_swap_enabled = |
| 134 !command_line->HasSwitch(switches::kUIDisablePartialSwap); | 134 !command_line->HasSwitch(switches::kUIDisablePartialSwap); |
| 135 #if defined(OS_WIN) | 135 #if defined(OS_WIN) |
| 136 settings.renderer_settings.finish_rendering_on_resize = true; | 136 settings.renderer_settings.finish_rendering_on_resize = true; |
| 137 #elif defined(OS_MACOSX) | 137 #elif defined(OS_MACOSX) |
| 138 settings.renderer_settings.release_overlay_resources_after_gpu_query = true; | 138 settings.renderer_settings.release_overlay_resources_after_gpu_query = true; |
| 139 #endif | 139 #endif |
| 140 settings.renderer_settings.gl_composited_texture_quad_border = | 140 settings.renderer_settings.gl_composited_texture_quad_border = |
| 141 command_line->HasSwitch(cc::switches::kGlCompositedTextureQuadBorder); | 141 command_line->HasSwitch(cc::switches::kGlCompositedTextureQuadBorder); |
| 142 settings.renderer_settings.overdraw_feedback = |
| 143 command_line->HasSwitch(cc::switches::kOverdrawFeedback); |
| 142 | 144 |
| 143 // These flags should be mirrored by renderer versions in content/renderer/. | 145 // These flags should be mirrored by renderer versions in content/renderer/. |
| 144 settings.initial_debug_state.show_debug_borders = | 146 settings.initial_debug_state.show_debug_borders = |
| 145 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); | 147 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); |
| 146 settings.initial_debug_state.show_fps_counter = | 148 settings.initial_debug_state.show_fps_counter = |
| 147 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); | 149 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); |
| 148 settings.initial_debug_state.show_layer_animation_bounds_rects = | 150 settings.initial_debug_state.show_layer_animation_bounds_rects = |
| 149 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); | 151 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); |
| 150 settings.initial_debug_state.show_paint_rects = | 152 settings.initial_debug_state.show_paint_rects = |
| 151 command_line->HasSwitch(switches::kUIShowPaintRects); | 153 command_line->HasSwitch(switches::kUIShowPaintRects); |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 for (auto& observer : observer_list_) | 566 for (auto& observer : observer_list_) |
| 565 observer.OnCompositingLockStateChanged(this); | 567 observer.OnCompositingLockStateChanged(this); |
| 566 } | 568 } |
| 567 | 569 |
| 568 void Compositor::CancelCompositorLock() { | 570 void Compositor::CancelCompositorLock() { |
| 569 if (compositor_lock_) | 571 if (compositor_lock_) |
| 570 compositor_lock_->CancelLock(); | 572 compositor_lock_->CancelLock(); |
| 571 } | 573 } |
| 572 | 574 |
| 573 } // namespace ui | 575 } // namespace ui |
| OLD | NEW |