summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-03-19 13:40:49 -0700
committerChet Haase <chet@google.com>2012-03-19 13:40:49 -0700
commitbdd896c26453ffc56831b0cd167e8780068cee53 (patch)
tree2dae769a3c4628ebf814ccc103d553839182292b /libs/hwui/DisplayListRenderer.h
parent80a6b33be276eb6c808fce13debb4bb7a489cdad (diff)
downloadframeworks_base-bdd896c26453ffc56831b0cd167e8780068cee53.zip
frameworks_base-bdd896c26453ffc56831b0cd167e8780068cee53.tar.gz
frameworks_base-bdd896c26453ffc56831b0cd167e8780068cee53.tar.bz2
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
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r--libs/hwui/DisplayListRenderer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index 4bbb04f..38d0374 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -51,7 +51,7 @@ namespace uirenderer {
// Set to 1 to enable native processing of View properties. 0 by default. Eventually this
// will go away and we will always use this approach for accelerated apps.
-#define USE_DISPLAY_LIST_PROPERTIES 0
+#define USE_DISPLAY_LIST_PROPERTIES 1
#define TRANSLATION 0x0001
#define ROTATION 0x0002