From 4e3f8284e8c02ba83587f16385e93ccce5a5439f Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 9 Jun 2020 11:02:51 +0900 Subject: [PATCH] sw_engine: grow cell memory buffer up to allow larger shapes Change-Id: I7a8feaa11d3dad81dd1004782e07a8ac4a768d91 --- src/lib/sw_engine/tvgSwRle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/sw_engine/tvgSwRle.cpp b/src/lib/sw_engine/tvgSwRle.cpp index 2757c0d..cab5463 100644 --- a/src/lib/sw_engine/tvgSwRle.cpp +++ b/src/lib/sw_engine/tvgSwRle.cpp @@ -633,7 +633,7 @@ static bool _genRle(RleWorker& rw) ret = _decomposeOutline(rw); if (!rw.invalid) _recordCell(rw); } else { - cout << "Memory Overflow" << endl; + cout << "Lack of Cell Memory" << endl; } return ret; } @@ -647,7 +647,7 @@ static bool _genRle(RleWorker& rw) SwRleData* rleRender(const SwOutline* outline, const SwBBox& bbox, const SwSize& clip) { //Please adjust when you out of cell memory (default: 16384L) - constexpr auto RENDER_POOL_SIZE = 166641L; + constexpr auto RENDER_POOL_SIZE = 163840L * 2; constexpr auto BAND_SIZE = 40; assert(outline); -- 2.7.4