| 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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "ui/gl/gl_switches.h" | 6 #include "ui/gl/gl_switches.h" |
| 7 | 7 |
| 8 namespace gl { | 8 namespace gl { |
| 9 | 9 |
| 10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } // namespace switches | 146 } // namespace switches |
| 147 | 147 |
| 148 namespace features { | 148 namespace features { |
| 149 | 149 |
| 150 #if defined(OS_WIN) | 150 #if defined(OS_WIN) |
| 151 // Wait for D3D VSync signals in GPU process (as opposed to delay based VSync | 151 // Wait for D3D VSync signals in GPU process (as opposed to delay based VSync |
| 152 // generated in Browser process based on VSync parameters). | 152 // generated in Browser process based on VSync parameters). |
| 153 const base::Feature kD3DVsync{"D3DVsync", base::FEATURE_DISABLED_BY_DEFAULT}; | 153 const base::Feature kD3DVsync{"D3DVsync", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 154 #endif // defined(OS_WIN) | 154 #endif // defined(OS_WIN) |
| 155 | 155 |
| 156 // Allow putting a video swapchain underneath the main swapchain, so overlays |
| 157 // can be used even if there are controls on top of the video. This requires |
| 158 // the DirectCompositionOverlays feature to be enabled. |
| 159 const base::Feature kDirectCompositionUnderlays{ |
| 160 "DirectCompositionUnderlays", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 161 |
| 162 // Allow putting content with complex transforms (e.g. rotations) into an |
| 163 // overlay. |
| 164 const base::Feature kDirectCompositionComplexOverlays{ |
| 165 "DirectCompositionComplexOverlays", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 166 |
| 156 } // namespace features | 167 } // namespace features |
| OLD | NEW |