Skip to content

Commit bdd896c

Browse files
committed
Enable DisplayList properties
This CL simply enables DisplayList property functionality. The code for this feature is already there, but it's been disabled by default pending further testing and analysis. This change sets these build-type flags to true so that all hw-accelerated apps will now use DisplayList properties by default. In particular, this feature enables a fast-path for changes that affect the handful of View properties involved in animations (alpha, translationX, etc.). Setting these properties now gets propagated to the native DisplayList associated with the View, avoiding costly recreation of the SDK-level DisplayList and also enabling faster invalidation of the view hierarchy. Change-Id: Ic99c8f28fa9183f2e54e9e4860b333eb9c540f7c
1 parent 80a6b33 commit bdd896c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/java/android/view/View.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
15031503
* apps.
15041504
* @hide
15051505
*/
1506-
public static final boolean USE_DISPLAY_LIST_PROPERTIES = false;
1506+
public static final boolean USE_DISPLAY_LIST_PROPERTIES = true;
15071507

15081508
/**
15091509
* Map used to store views' tags.

libs/hwui/DisplayListRenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace uirenderer {
5151

5252
// Set to 1 to enable native processing of View properties. 0 by default. Eventually this
5353
// will go away and we will always use this approach for accelerated apps.
54-
#define USE_DISPLAY_LIST_PROPERTIES 0
54+
#define USE_DISPLAY_LIST_PROPERTIES 1
5555

5656
#define TRANSLATION 0x0001
5757
#define ROTATION 0x0002

0 commit comments

Comments
 (0)