common log: notify opacity composition usage log.

replaced [XXX] log prefix with XXX:
This commit is contained in:
Hermet Park 2020-12-15 14:29:52 +09:00
parent 54816339ed
commit abc9e89517
3 changed files with 7 additions and 3 deletions

View file

@ -335,6 +335,10 @@ void* SwRenderer::beginComposite(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
if (x + w > surface->w) w = (surface->w - x);
if (y + h > surface->h) h = (surface->h - y);
#ifdef THORVG_LOG_ENABLED
printf("SW_ENGINE: Using intermediate opacity composition [Region: %d %d %d %d]\n", x, y, w, h);
#endif
comp->bbox.min.x = x;
comp->bbox.min.y = y;
comp->bbox.max.x = x + w;

View file

@ -1050,7 +1050,7 @@ static SvgNode* _createMaskNode(SvgLoaderData* loader, SvgNode* parent, const ch
loader->svgParse->node->display = false;
#ifdef THORVG_LOG_ENABLED
printf("[SVG] Unsuppoted elements used [Elements: mask]\n");
printf("SVG: Unsuppoted elements used [Elements: mask]\n");
#endif
return loader->svgParse->node;
@ -2131,7 +2131,7 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content,
}
#ifdef THORVG_LOG_ENABLED
else {
printf("[SVG] Unsuppoted elements used [Elements: %s]\n", tagName);
printf("SVG: Unsuppoted elements used [Elements: %s]\n", tagName);
}
#endif
}

View file

@ -186,7 +186,7 @@ bool simpleXmlParseAttributes(const char* buf, unsigned bufLength, simpleXMLAttr
tval[valueEnd - value] = '\0';
#ifdef THORVG_LOG_ENABLED
if (!func((void*)data, tmpBuf, tval)) printf("[SVG] Unsuppoted attributes used [Elements type: %s][Attribute: %s]\n", nodeTypeToString(((SvgLoaderData*)data)->svgParse->node->type).c_str(), tmpBuf);
if (!func((void*)data, tmpBuf, tval)) printf("SVG: Unsuppoted attributes used [Elements type: %s][Attribute: %s]\n", nodeTypeToString(((SvgLoaderData*)data)->svgParse->node->type).c_str(), tmpBuf);
#else
func((void*)data, tmpBuf, tval);
#endif