hello, guys, I'm upgrading skia from 75 to 91 in my project.
but i confront with a problem that, the same code of drawing a line antialias work well in skia 75, but not working in skia 91. is there some new configuration should i do for skia ?
code of drawing line
1. create the sksurface to draw
static sk_sp<SkSurface> CreateOffscreenSurface(GrDirectContext *context,
const SkISize &size) {
const SkImageInfo image_info = SkImageInfo::Make(
size.fWidth, size.fHeight, kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::MakeSRGB());
const SkSurfaceProps surface_props(
0, SkPixelGeometry::kRGB_H_SkPixelGeometry);
return SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, image_info, 0,
kBottomLeft_GrSurfaceOrigin, &surface_props);
}
2. draw lines
//drawline antialias
skPaint.setAntiAlias(true);
canvas->drawPath(path, skPaint);
//draw line without antialias
skPaint.setAntiAlias(false);
canvas->save();
canvas->translate(30,200);
canvas->drawPath(path, skPaint);
canvas->restore();
skia 75
skia 91
it shows that , skpaint antialias in skia 91 not working . is there other factor affect
antialias to take in effect. and the same code works well in skia 75, but not well in skia 91, is there some change on antialias logic from skia 75 to skia 91?
Thank you for help !