mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-16 13:04:48 +00:00
sw_engine raster: clarify the internal function name.
"Solid" in this raster context is "Opaque" actually. So remove the solid from it.
This commit is contained in:
parent
491ea0ac07
commit
93da844d94
3 changed files with 3 additions and 3 deletions
|
@ -351,7 +351,7 @@ void mpoolRetStrokeOutline(SwMpool* mpool, unsigned idx);
|
||||||
|
|
||||||
bool rasterCompositor(SwSurface* surface);
|
bool rasterCompositor(SwSurface* surface);
|
||||||
bool rasterGradientShape(SwSurface* surface, SwShape* shape, unsigned id);
|
bool rasterGradientShape(SwSurface* surface, SwShape* shape, unsigned id);
|
||||||
bool rasterSolidShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
bool rasterShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||||
bool rasterImage(SwSurface* surface, SwImage* image, const Matrix* transform, const SwBBox& bbox, uint32_t opacity);
|
bool rasterImage(SwSurface* surface, SwImage* image, const Matrix* transform, const SwBBox& bbox, uint32_t opacity);
|
||||||
bool rasterStroke(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
bool rasterStroke(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||||
bool rasterGradientStroke(SwSurface* surface, SwShape* shape, unsigned id);
|
bool rasterGradientStroke(SwSurface* surface, SwShape* shape, unsigned id);
|
||||||
|
|
|
@ -1483,7 +1483,7 @@ bool rasterGradientShape(SwSurface* surface, SwShape* shape, unsigned id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool rasterSolidShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a)
|
bool rasterShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a)
|
||||||
{
|
{
|
||||||
if (a < 255) {
|
if (a < 255) {
|
||||||
r = _multiplyAlpha(r, a);
|
r = _multiplyAlpha(r, a);
|
||||||
|
|
|
@ -388,7 +388,7 @@ bool SwRenderer::renderShape(RenderData data)
|
||||||
} else {
|
} else {
|
||||||
task->sdata->fillColor(&r, &g, &b, &a);
|
task->sdata->fillColor(&r, &g, &b, &a);
|
||||||
a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
|
a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
|
||||||
if (a > 0) rasterSolidShape(surface, &task->shape, r, g, b, a);
|
if (a > 0) rasterShape(surface, &task->shape, r, g, b, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto strokeFill = task->sdata->strokeFill()) {
|
if (auto strokeFill = task->sdata->strokeFill()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue