Merge "Match AHardwareBuffer format name change" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-21 18:38:19 +00:00
committed by Android (Google) Code Review

View File

@@ -83,7 +83,7 @@ static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer)
colorType = kN32_SkColorType; colorType = kN32_SkColorType;
alphaType = kOpaque_SkAlphaType; alphaType = kOpaque_SkAlphaType;
break; break;
case AHARDWAREBUFFER_FORMAT_R16G16B16A16_SFLOAT: case AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT:
colorType = kRGBA_F16_SkColorType; colorType = kRGBA_F16_SkColorType;
alphaType = kPremul_SkAlphaType; alphaType = kPremul_SkAlphaType;
break; break;