Index: include/gpu/SkGr.h |
diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h |
index 2d0418bf089bb814ab9a52554e31ab5593c997d4..1f3c5affe444e9208fbf17faa74d237a9214f799 100644 |
--- a/include/gpu/SkGr.h |
+++ b/include/gpu/SkGr.h |
@@ -51,6 +51,11 @@ GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); |
*/ |
GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config); |
GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType); |
+ |
+static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info) { |
+ return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType()); |
+} |
+ |
bool GrPixelConfig2ColorType(GrPixelConfig, SkColorType*); |
static inline GrColor SkColor2GrColor(SkColor c) { |