OSDN Git Service

Rework and clean up DisplayList projection
authorChris Craik <ccraik@google.com>
Thu, 6 Feb 2014 00:50:41 +0000 (16:50 -0800)
committerChris Craik <ccraik@google.com>
Fri, 7 Feb 2014 00:07:37 +0000 (16:07 -0800)
commit1df26446b7eac7050767c38ca977fde03a41a033
tree7a21fd8c7d067b80c704c72e2cf02342b7511c78
parentd5154ec2bc7e7c0bdfd14fc784912d390afe43cc
Rework and clean up DisplayList projection

Move the projection surface to be a property of a DisplayList,
set to true for every background drawable.

Additionally, handle a projecting view background such that it doesn't
try to project onto itself (which is undesirable).

Change-Id: Ic70b17474bd87340e80767f8518f73b233419c7a
core/java/android/view/DisplayList.java
core/java/android/view/View.java
core/jni/android_view_DisplayList.cpp
libs/hwui/DisplayList.cpp
libs/hwui/DisplayList.h
libs/hwui/DisplayListRenderer.cpp
libs/hwui/DisplayListRenderer.h
libs/hwui/Snapshot.cpp
libs/hwui/Snapshot.h
tests/HwAccelerationTest/res/layout/projection.xml
tests/HwAccelerationTest/src/com/android/test/hwui/ProjectionActivity.java