зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
2905ff552c
Коммит
beb0c2aa32
|
@ -20,7 +20,7 @@ SkImageWidget::SkImageWidget(SkDebugger *debugger)
|
|||
info.fWidth = kImageWidgetWidth;
|
||||
info.fHeight = kImageWidgetHeight;
|
||||
info.fColorType = SkImage::kPMColor_ColorType;
|
||||
info.fAlphaType = SkImage::kPremul_AlphaType;
|
||||
info.fAlphaType = kPremul_SkAlphaType;
|
||||
|
||||
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);
|
||||
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче