OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ | 5 #ifndef ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ |
6 #define ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ | 6 #define ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // When set, falls back to using the old disk cache. | 10 // When set, falls back to using the old disk cache. |
11 extern const char kDisableSimpleCache[]; | 11 extern const char kDisableSimpleCache[]; |
12 | 12 |
13 // When set, forces use of fallback SW path even on HW canvas. | |
14 extern const char kDisableWebViewGLMode[]; | |
15 | |
16 // Used to make tile memory allocation decision. Roughly the number of | 13 // Used to make tile memory allocation decision. Roughly the number of |
17 // displays that a single layer will have enough memory for. | 14 // displays that a single layer will have enough memory for. |
18 extern const char kTileMemoryMultiplier[]; | 15 extern const char kTileMemoryMultiplier[]; |
19 | 16 |
20 // Maximum number of gralloc allocations per webview. | 17 // Maximum number of gralloc allocations per webview. |
21 extern const char kNumGrallocBuffersPerWebview[]; | 18 extern const char kNumGrallocBuffersPerWebview[]; |
22 | 19 |
23 // Explicitly enable accelerated 2d canvas. | 20 // Explicitly enable accelerated 2d canvas. |
24 // TODO(boliu): Remove this switch once on by default. | 21 // TODO(boliu): Remove this switch once on by default. |
25 extern const char kEnableAccelerated2dCanvas[]; | 22 extern const char kEnableAccelerated2dCanvas[]; |
26 | 23 |
27 } // namespace switches | 24 } // namespace switches |
28 | 25 |
29 #endif // ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ | 26 #endif // ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ |
OLD | NEW |