mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 23:59:12 +00:00
sw_engine mempool: tiny optimization.
don't mempool anything if the option is same.
This commit is contained in:
parent
3c19f2aaf5
commit
1c53d47f81
1 changed files with 2 additions and 0 deletions
|
@ -405,6 +405,8 @@ bool SwRenderer::beginComposite(Compositor* cmp, CompositeMethod method, uint32_
|
||||||
|
|
||||||
bool SwRenderer::mempool(bool shared)
|
bool SwRenderer::mempool(bool shared)
|
||||||
{
|
{
|
||||||
|
if (shared == sharedMpool) return true;
|
||||||
|
|
||||||
if (shared) {
|
if (shared) {
|
||||||
if (!sharedMpool) {
|
if (!sharedMpool) {
|
||||||
if (!mpoolTerm(mpool)) return false;
|
if (!mpoolTerm(mpool)) return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue