Rename debug property and expose it in HardwareRenderer

Change-Id: If46a9bc14a50f6c9a202d901881b36bbac32cba3
This commit is contained in:
Romain Guy
2013-02-25 16:21:30 -08:00
parent 3ff0bfdd14
commit 08bca88b27
2 changed files with 14 additions and 1 deletions

View File

@@ -172,6 +172,19 @@ public abstract class HardwareRenderer {
*/
public static final String DEBUG_SHOW_OVERDRAW_PROPERTY = "debug.hwui.show_overdraw";
/**
* Turn on to debug non-rectangular clip operations.
*
* Possible values:
* "hide", to disable this debug mode
* "highlight", highlight drawing commands tested against a non-rectangular clip
* "stencil", renders the clip region on screen when set
*
* @hide
*/
public static final String DEBUG_SHOW_NON_RECTANGULAR_CLIP_PROPERTY =
"debug.hwui.show_non_rect_clip";
/**
* A process can set this flag to false to prevent the use of hardware
* rendering.

View File

@@ -79,7 +79,7 @@ enum DebugLevel {
*
* The default value is "hide".
*/
#define PROPERTY_DEBUG_STENCIL_CLIP "debug.hwui.show_stencil_clip"
#define PROPERTY_DEBUG_STENCIL_CLIP "debug.hwui.show_non_rect_clip"
/**
* Used to enable/disable scissor optimization. The accepted values are