| Index: include/gpu/SkGr.h
|
| diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h
|
| index 5e5ca4b72c30f898bb9c07d829f3824f8ef652be..743cfbaef590c0127f5648bdac8ff895d4104b4a 100644
|
| --- a/include/gpu/SkGr.h
|
| +++ b/include/gpu/SkGr.h
|
| @@ -60,6 +60,14 @@ static inline GrColor SkColor2GrColor(SkColor c) {
|
| return GrColorPackRGBA(r, g, b, a);
|
| }
|
|
|
| +static inline GrColor SkColor2GrColorNoPremultiply(SkColor c) {
|
| + unsigned r = SkColorGetR(c);
|
| + unsigned g = SkColorGetG(c);
|
| + unsigned b = SkColorGetB(c);
|
| + unsigned a = SkColorGetA(c);
|
| + return GrColorPackRGBA(r, g, b, a);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams*);
|
|
|