summaryrefslogtreecommitdiffstats
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-23 13:07:57 -0800
committerChris Craik <ccraik@google.com>2015-02-23 13:21:53 -0800
commit8e93a7c9377b4ae43ecfb408f4906a09f6c83c03 (patch)
tree8a68ed6f0eca6f0688b9d9f07aa51d097ccc7c9b /libs/hwui/GradientCache.cpp
parentf27133df2d179c99d6bc1ae644af09e9153a0071 (diff)
downloadframeworks_base-8e93a7c9377b4ae43ecfb408f4906a09f6c83c03.zip
frameworks_base-8e93a7c9377b4ae43ecfb408f4906a09f6c83c03.tar.gz
frameworks_base-8e93a7c9377b4ae43ecfb408f4906a09f6c83c03.tar.bz2
Simplify Texture member initialization
Change-Id: Iaaa6dd20e64a0a075d732b101e3c4278cad44047
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index fb4c785..ea93e7f 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -166,7 +166,7 @@ Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient,
GradientInfo info;
getGradientInfo(colors, count, info);
- Texture* texture = new Texture();
+ Texture* texture = new Texture(Caches::getInstance());
texture->width = info.width;
texture->height = 2;
texture->blend = info.hasAlpha;