Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: android_webview/common/aw_switches.h

Issue 140753006: [Android WebView] Turn on accelerated canvas based on View.isHardwareAccelerated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. 13 // When set, forces use of fallback SW path even on HW canvas.
14 extern const char kDisableWebViewGLMode[]; 14 extern const char kDisableWebViewGLMode[];
15 15
16 // Used to make tile memory allocation decision. Roughly the number of 16 // Used to make tile memory allocation decision. Roughly the number of
17 // displays that a single layer will have enough memory for. 17 // displays that a single layer will have enough memory for.
18 extern const char kTileMemoryMultiplier[]; 18 extern const char kTileMemoryMultiplier[];
19 19
20 // Maximum number of gralloc allocations per webview. 20 // Maximum number of gralloc allocations per webview.
21 extern const char kNumGrallocBuffersPerWebview[]; 21 extern const char kNumGrallocBuffersPerWebview[];
22 22
23 // Explicitly enable accelerated 2d canvas.
24 // TODO(boliu): Remove this switch once on by default.
25 extern const char kEnableAccelerated2dCanvas[];
26
23 } // namespace switches 27 } // namespace switches
24 28
25 #endif // ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_ 29 #endif // ANDROID_WEBVIEW_COMMON_AW_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698