sw_engine raster: clarify the internal function name.
authorHermet Park <chuneon.park@samsung.com>
Fri, 19 Nov 2021 04:11:21 +0000 (13:11 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 19 Nov 2021 05:29:11 +0000 (14:29 +0900)
"Solid" in this raster context is "Opaque" actually.
So remove the solid from it.

src/lib/sw_engine/tvgSwCommon.h
src/lib/sw_engine/tvgSwRaster.cpp
src/lib/sw_engine/tvgSwRenderer.cpp

index e0db06b6dae8347c76c956c2c7bcbe73e703e253..85974f51e929433fef0fde83ac894ddfa9f87d1d 100644 (file)
@@ -351,7 +351,7 @@ void mpoolRetStrokeOutline(SwMpool* mpool, unsigned idx);
 
 bool rasterCompositor(SwSurface* surface);
 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 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);
index 0553658a21b5b26a62d5289617475c1f37f17c89..ede71554de9cfec251f2cc7a8babde51864299fb 100644 (file)
@@ -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) {
         r = _multiplyAlpha(r, a);
index bc63335afc046f08dd30852e5b08576e807d78a5..3aa7d7f61289313db2dc469fec05004cd468501d 100644 (file)
@@ -388,7 +388,7 @@ bool SwRenderer::renderShape(RenderData data)
     } else {
         task->sdata->fillColor(&r, &g, &b, &a);
         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()) {