diff options
| author | 2012-07-18 20:43:05 -0700 | |
|---|---|---|
| committer | 2012-07-18 20:43:05 -0700 | |
| commit | 9cf6f6e71d072ac9ccdf78c1566516220e806373 (patch) | |
| tree | d1b4e5f3b2cb3f61738c197509b6da7b216f3181 /libs/hwui/GradientCache.cpp | |
| parent | c64c1cbef4d52cbd82c38485be3270eddf743f98 (diff) | |
| parent | eb61cd8296ed7e3f3aef5bd430d846aa54d5d7e2 (diff) | |
Merge "Optimize gradient textures"
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
| -rw-r--r-- | libs/hwui/GradientCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp index 3678788d5d50..0016b8145fda 100644 --- a/libs/hwui/GradientCache.cpp +++ b/libs/hwui/GradientCache.cpp @@ -117,7 +117,7 @@ void GradientCache::clear() { Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) { SkBitmap bitmap; - bitmap.setConfig(SkBitmap::kARGB_8888_Config, 1024, 1); + bitmap.setConfig(SkBitmap::kARGB_8888_Config, 256 * (count - 1), 1); bitmap.allocPixels(); bitmap.eraseColor(0); |