OSDN Git Service

Optimize gradient textures
authorRomain Guy <romainguy@google.com>
Thu, 19 Jul 2012 03:26:02 +0000 (20:26 -0700)
committerRomain Guy <romainguy@google.com>
Thu, 19 Jul 2012 03:39:45 +0000 (20:39 -0700)
commiteb61cd8296ed7e3f3aef5bd430d846aa54d5d7e2
treebaf241a0b6912a8304843a542dfadf4b869474c1
parent63553478130f78d44c8fbeaebc610e19925544a5
Optimize gradient textures

Compute the size of the backing textures based on the maximum possible
number of shades in the gradient.

Change-Id: I2d7f20477d31b81e9735f2c1d83ebdd0dbcbe340
libs/hwui/GradientCache.cpp