Better debug info for layers.

Change-Id: I816c2446a33a1135553eaeea2f89c7418641cfe1
This commit is contained in:
Romain Guy
2011-01-12 14:18:47 -08:00
parent 853548287f
commit 3aaff3aef4

View File

@@ -2226,7 +2226,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*/
public static final int LAYER_TYPE_HARDWARE = 2;
@ViewDebug.ExportedProperty(category = "drawing")
@ViewDebug.ExportedProperty(category = "drawing", mapping = {
@ViewDebug.IntToString(from = LAYER_TYPE_NONE, to = "NONE"),
@ViewDebug.IntToString(from = LAYER_TYPE_SOFTWARE, to = "SOFTWARE"),
@ViewDebug.IntToString(from = LAYER_TYPE_HARDWARE, to = "HARDWARE")
})
int mLayerType = LAYER_TYPE_NONE;
Paint mLayerPaint;