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 #ifndef UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ |
7 | 7 |
8 #include "ui/compositor/compositor_export.h" | 8 #include "ui/compositor/compositor_export.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
11 | 11 |
12 COMPOSITOR_EXPORT extern const char kEnableHardwareOverlays[]; | 12 COMPOSITOR_EXPORT extern const char kEnableHardwareOverlays[]; |
13 COMPOSITOR_EXPORT extern const char kEnablePixelOutputInTests[]; | 13 COMPOSITOR_EXPORT extern const char kEnablePixelOutputInTests[]; |
14 COMPOSITOR_EXPORT extern const char kLimitFps[]; | 14 COMPOSITOR_EXPORT extern const char kLimitFps[]; |
15 COMPOSITOR_EXPORT extern const char kUIDisablePartialSwap[]; | 15 COMPOSITOR_EXPORT extern const char kUIDisablePartialSwap[]; |
16 COMPOSITOR_EXPORT extern const char kUIEnableRGBA4444Textures[]; | 16 COMPOSITOR_EXPORT extern const char kUIEnableRGBA4444Textures[]; |
17 COMPOSITOR_EXPORT extern const char kUIEnableZeroCopy[]; | 17 COMPOSITOR_EXPORT extern const char kUIEnableZeroCopy[]; |
18 COMPOSITOR_EXPORT extern const char kUIShowPaintRects[]; | 18 COMPOSITOR_EXPORT extern const char kUIShowPaintRects[]; |
19 COMPOSITOR_EXPORT extern const char kUISlowAnimations[]; | 19 COMPOSITOR_EXPORT extern const char kUISlowAnimations[]; |
| 20 COMPOSITOR_EXPORT extern const char kEnablePixelCanvasRecording[]; |
20 | 21 |
21 } // namespace switches | 22 } // namespace switches |
22 | 23 |
23 namespace ui { | 24 namespace ui { |
24 | 25 |
25 bool IsUIZeroCopyEnabled(); | 26 bool IsUIZeroCopyEnabled(); |
26 | 27 |
| 28 bool COMPOSITOR_EXPORT IsPixelCanvasRecordingEnabled(); |
| 29 |
27 } // namespace ui | 30 } // namespace ui |
28 | 31 |
29 #endif // UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ | 32 #endif // UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_ |
OLD | NEW |