From 028e1fa2514a7983eb0843bb35048bbf6771ed88 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 22 Feb 2021 12:53:09 +0900 Subject: [PATCH] sw_engine: enhance log message. more informational log is better. --- src/lib/sw_engine/tvgSwRaster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/sw_engine/tvgSwRaster.cpp b/src/lib/sw_engine/tvgSwRaster.cpp index 2262a787..4fe13460 100644 --- a/src/lib/sw_engine/tvgSwRaster.cpp +++ b/src/lib/sw_engine/tvgSwRaster.cpp @@ -158,7 +158,7 @@ static bool _translucentRectInvAlphaMask(SwSurface* surface, const SwBBox& regio auto w = static_cast(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(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;