Home
last modified time | relevance | path

Searched refs:inColor (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/
DGradientCache.cpp182 void GradientCache::splitToBytes(uint32_t inColor, GradientColor& outColor) const { in splitToBytes() argument
183 outColor.r = (inColor >> 16) & 0xff; in splitToBytes()
184 outColor.g = (inColor >> 8) & 0xff; in splitToBytes()
185 outColor.b = (inColor >> 0) & 0xff; in splitToBytes()
186 outColor.a = (inColor >> 24) & 0xff; in splitToBytes()
189 void GradientCache::splitToFloats(uint32_t inColor, GradientColor& outColor) const { in splitToFloats() argument
190 outColor.r = ((inColor >> 16) & 0xff) / 255.0f; in splitToFloats()
191 outColor.g = ((inColor >> 8) & 0xff) / 255.0f; in splitToFloats()
192 outColor.b = ((inColor >> 0) & 0xff) / 255.0f; in splitToFloats()
193 outColor.a = ((inColor >> 24) & 0xff) / 255.0f; in splitToFloats()
DGradientCache.h161 typedef void (GradientCache::*ChannelSplitter)(uint32_t inColor,
164 void splitToBytes(uint32_t inColor, GradientColor& outColor) const;
165 void splitToFloats(uint32_t inColor, GradientColor& outColor) const;