blob: 14471bc7b71748389235f1a866b798a937f25138 [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 Guyc9855a52011-01-21 21:14:15 -080023// Turn on to enable initialization information
24#define DEBUG_INIT 0
25
Romain Guyc15008e2010-11-10 11:59:15 -080026// Turn on to enable memory usage summary on each frame
27#define DEBUG_MEMORY_USAGE 0
28
29// Turn on to enable layers debugging when renderered as regions
30#define DEBUG_LAYERS_AS_REGIONS 0
31
32// Turn on to display debug info about vertex/fragment shaders
33#define DEBUG_PROGRAMS 0
34
35// Turn on to display info about layers
36#define DEBUG_LAYERS 0
37
38// Turn on to display debug infor about 9patch objects
39#define DEBUG_PATCHES 0
Romain Guya5ef39a2010-12-03 16:48:20 -080040// Turn on to display vertex and tex coords data about 9patch objects
41// This flag requires DEBUG_PATCHES to be turned on
42#define DEBUG_PATCHES_VERTICES 0
Romain Guyfb13abd2011-01-16 15:16:38 -080043// Turn on to display vertex and tex coords data used by empty quads
44// in 9patch objects
45// This flag requires DEBUG_PATCHES to be turned on
46#define DEBUG_PATCHES_EMPTY_VERTICES 0
Romain Guyc15008e2010-11-10 11:59:15 -080047
Romain Guy01d58e42011-01-19 21:54:02 -080048// Turn on to display debug info about shapes
49#define DEBUG_SHAPES 0
50
Romain Guyc15008e2010-11-10 11:59:15 -080051// Turn on to display debug info about textures
52#define DEBUG_TEXTURES 0
53
Romain Guy1fc883b2011-01-12 14:30:59 -080054// Turn on to display debug info about the layer renderer
55#define DEBUG_LAYER_RENDERER 0
56
Romain Guyffac7fc2011-01-13 17:21:49 -080057// Turn on to dump display list state
58#define DEBUG_DISPLAY_LIST 0
59
Romain Guyc9855a52011-01-21 21:14:15 -080060#if DEBUG_INIT
61 #define INIT_LOGD(...) LOGD(__VA_ARGS__)
62#else
63 #define INIT_LOGD(...)
64#endif
65
Romain Guyc15008e2010-11-10 11:59:15 -080066#endif // ANDROID_HWUI_DEBUG_H