blob: 5f8baacb710cf040f99f7330ab1b205aa483f3e9 [file] [log] [blame]
Romain Guyc15008e2010-11-10 11:59:15 -08001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HWUI_DEBUG_H
18#define ANDROID_HWUI_DEBUG_H
19
20// Turn on to check for OpenGL errors on each frame
21#define DEBUG_OPENGL 1
22
Romain Guya60c3882011-08-01 15:28:16 -070023// Turn on to display informations about the GPU
24#define DEBUG_EXTENSIONS 0
25
Romain Guyc9855a52011-01-21 21:14:15 -080026// Turn on to enable initialization information
27#define DEBUG_INIT 0
28
Romain Guyc15008e2010-11-10 11:59:15 -080029// Turn on to enable memory usage summary on each frame
30#define DEBUG_MEMORY_USAGE 0
31
Romain Guybdf76092011-07-18 15:00:43 -070032// Turn on to enable debugging of cache flushes
Romain Guy9c10ab02012-02-22 14:34:58 -080033#define DEBUG_CACHE_FLUSH 0
Romain Guybdf76092011-07-18 15:00:43 -070034
Romain Guyaaceeb02011-03-23 19:56:13 -070035// Turn on to enable layers debugging when rendered as regions
Romain Guyc15008e2010-11-10 11:59:15 -080036#define DEBUG_LAYERS_AS_REGIONS 0
37
Romain Guy735738c2012-12-03 12:34:51 -080038// Turn on to enable debugging when the clip is not a rect
39#define DEBUG_CLIP_REGIONS 0
40
Romain Guyc15008e2010-11-10 11:59:15 -080041// Turn on to display debug info about vertex/fragment shaders
42#define DEBUG_PROGRAMS 0
43
44// Turn on to display info about layers
45#define DEBUG_LAYERS 0
46
Romain Guy3bbacf22013-02-06 16:51:04 -080047// Turn on to make stencil operations easier to debug
48#define DEBUG_STENCIL 0
49
Romain Guyaaceeb02011-03-23 19:56:13 -070050// Turn on to display debug info about 9patch objects
Romain Guyc15008e2010-11-10 11:59:15 -080051#define DEBUG_PATCHES 0
Romain Guyf504a2f2011-05-26 16:40:55 -070052// Turn on to "explode" 9patch objects
53#define DEBUG_EXPLODE_PATCHES 0
Romain Guya5ef39a2010-12-03 16:48:20 -080054// Turn on to display vertex and tex coords data about 9patch objects
55// This flag requires DEBUG_PATCHES to be turned on
56#define DEBUG_PATCHES_VERTICES 0
Romain Guyfb13abd2011-01-16 15:16:38 -080057// Turn on to display vertex and tex coords data used by empty quads
58// in 9patch objects
59// This flag requires DEBUG_PATCHES to be turned on
60#define DEBUG_PATCHES_EMPTY_VERTICES 0
Romain Guyc15008e2010-11-10 11:59:15 -080061
Romain Guy01d58e42011-01-19 21:54:02 -080062// Turn on to display debug info about shapes
63#define DEBUG_SHAPES 0
64
Romain Guyc15008e2010-11-10 11:59:15 -080065// Turn on to display debug info about textures
66#define DEBUG_TEXTURES 0
67
Romain Guy1fc883b2011-01-12 14:30:59 -080068// Turn on to display debug info about the layer renderer
69#define DEBUG_LAYER_RENDERER 0
70
Romain Guyb6294902012-02-02 15:13:18 -080071// Turn on to enable additional debugging in the font renderers
72#define DEBUG_FONT_RENDERER 0
73
Romain Guyffac7fc2011-01-13 17:21:49 -080074// Turn on to dump display list state
75#define DEBUG_DISPLAY_LIST 0
76
Romain Guy8a4ac612012-07-17 17:32:48 -070077// Turn on to insert an event marker for each display list op
78#define DEBUG_DISPLAY_LIST_OPS_AS_EVENTS 0
79
Romain Guyc9855a52011-01-21 21:14:15 -080080#if DEBUG_INIT
Steve Block5baa3a62011-12-20 16:23:08 +000081 #define INIT_LOGD(...) ALOGD(__VA_ARGS__)
Romain Guyc9855a52011-01-21 21:14:15 -080082#else
83 #define INIT_LOGD(...)
84#endif
85
Romain Guyc15008e2010-11-10 11:59:15 -080086#endif // ANDROID_HWUI_DEBUG_H