sw_engine: enhance log message.

more informational log is better.
This commit is contained in:
Hermet Park 2021-02-22 12:53:09 +09:00
parent 229a013fcd
commit 028e1fa251

View file

@ -158,7 +158,7 @@ static bool _translucentRectInvAlphaMask(SwSurface* surface, const SwBBox& regio
auto w = static_cast<uint32_t>(region.max.x - region.min.x);
#ifdef THORVG_LOG_ENABLED
printf("SW_ENGINE: Rectangle Alpha Mask Composition\n");
printf("SW_ENGINE: Rectangle Inverse Alpha Mask Composition\n");
#endif
auto cbuffer = surface->compositor->image.data + (region.min.y * surface->stride) + region.min.x; //compositor buffer
@ -257,7 +257,7 @@ static bool _translucentRleAlphaMask(SwSurface* surface, const SwRleData* rle, u
static bool _translucentRleInvAlphaMask(SwSurface* surface, SwRleData* rle, uint32_t color)
{
#ifdef THORVG_LOG_ENABLED
printf("SW_ENGINE: Rle Alpha Mask Composition\n");
printf("SW_ENGINE: Rle Inverse Alpha Mask Composition\n");
#endif
auto span = rle->spans;
uint32_t src;
@ -443,7 +443,7 @@ static bool _translucentImageAlphaMask(SwSurface* surface, const uint32_t *img,
static bool _translucentImageInvAlphaMask(SwSurface* surface, const uint32_t *img, uint32_t w, uint32_t h, uint32_t opacity, const SwBBox& region, const Matrix* invTransform)
{
#ifdef THORVG_LOG_ENABLED
printf("SW_ENGINE: Transformed Image Alpha Mask Composition\n");
printf("SW_ENGINE: Transformed Image Inverse Alpha Mask Composition\n");
#endif
for (auto y = region.min.y; y < region.max.y; ++y) {
auto dst = &surface->buffer[y * surface->stride + region.min.x];
@ -522,7 +522,7 @@ static bool _translucentImageInvAlphaMask(SwSurface* surface, uint32_t *img, uin
auto w2 = static_cast<uint32_t>(region.max.x - region.min.x);
#ifdef THORVG_LOG_ENABLED
printf("SW_ENGINE: Image Alpha Mask Composition\n");
printf("SW_ENGINE: Image Inverse Alpha Mask Composition\n");
#endif
auto sbuffer = img + (region.min.y * w) + region.min.x;