mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
common log: notify opacity composition usage log.
replaced [XXX] log prefix with XXX:
This commit is contained in:
parent
54816339ed
commit
abc9e89517
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue