use new globally scoped SkAlphaType

git-svn-id: http://skia.googlecode.com/svn/trunk@11424 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-09-20 20:05:01 +00:00
Родитель 2905ff552c
Коммит beb0c2aa32
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -20,7 +20,7 @@ SkImageWidget::SkImageWidget(SkDebugger *debugger)
info.fWidth = kImageWidgetWidth; info.fWidth = kImageWidgetWidth;
info.fHeight = kImageWidgetHeight; info.fHeight = kImageWidgetHeight;
info.fColorType = SkImage::kPMColor_ColorType; info.fColorType = SkImage::kPMColor_ColorType;
info.fAlphaType = SkImage::kPremul_AlphaType; info.fAlphaType = kPremul_SkAlphaType;
fSurface = SkSurface::NewRasterDirect(info, fPixels, 4 * kImageWidgetWidth); fSurface = SkSurface::NewRasterDirect(info, fPixels, 4 * kImageWidgetWidth);
} }

Просмотреть файл

@ -27,7 +27,7 @@ JNIEXPORT void JNICALL Java_com_example_HelloSkiaActivity_drawIntoBitmap(JNIEnv*
AndroidBitmap_lockPixels(env, dstBitmap, &dstPixels); AndroidBitmap_lockPixels(env, dstBitmap, &dstPixels);
SkImage::Info info = { SkImage::Info info = {
dstInfo.width, dstInfo.height, SkImage::kPMColor_ColorType, SkImage::kPremul_AlphaType dstInfo.width, dstInfo.height, SkImage::kPMColor_ColorType,kPremul_SkAlphaType
}; };
// Create a surface from the given bitmap // Create a surface from the given bitmap