OSDN Git Service

Early rejection on shadows which are outside of the clip bound.
authorztenghui <ztenghui@google.com>
Wed, 19 Mar 2014 00:25:49 +0000 (17:25 -0700)
committerztenghui <ztenghui@google.com>
Thu, 20 Mar 2014 22:25:47 +0000 (15:25 -0700)
commitaf6f7ed8dd4288a41d0a07a1f0f0be7d6d035b33
tree1004e5d8a1120b83102fd82e0e9484f410c9d319
parent31dc8f701fb14e185bf1c1b35d68bd7d1a42a54a
Early rejection on shadows which are outside of the clip bound.

All the computations are estimated using bounding box.
TODO: Spot shadow could have more accurate but also more expensive methods, we need
more experiments to decide.

Change-Id: I9c10c419576cee55daf0f9f278b0db78cb847447
libs/hwui/OpenGLRenderer.cpp
libs/hwui/Rect.h
libs/hwui/ShadowTessellator.cpp
libs/hwui/ShadowTessellator.h