From 8e93a7c9377b4ae43ecfb408f4906a09f6c83c03 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 23 Feb 2015 13:07:57 -0800 Subject: Simplify Texture member initialization Change-Id: Iaaa6dd20e64a0a075d732b101e3c4278cad44047 --- libs/hwui/GradientCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/GradientCache.cpp') diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp index fb4c7854df14..ea93e7f9716b 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; -- cgit v1.2.3-59-g8ed1b