projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75f2bc5
)
sw_engine: tag one optimization point for future work.
author
Hermet Park
<chuneon.park@samsung.com>
Sun, 19 Apr 2020 02:55:19 +0000
(11:55 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Sun, 19 Apr 2020 02:55:19 +0000
(11:55 +0900)
Change-Id: Ib41b18c097d24636efbba633972e1c8b7f9a63ef
src/lib/sw_engine/tvgSwRle.cpp
patch
|
blob
|
history
diff --git
a/src/lib/sw_engine/tvgSwRle.cpp
b/src/lib/sw_engine/tvgSwRle.cpp
index
1d3d498
..
49d6238
100644
(file)
--- a/
src/lib/sw_engine/tvgSwRle.cpp
+++ b/
src/lib/sw_engine/tvgSwRle.cpp
@@
-228,17
+228,16
@@
static void _sweep(RleWorker& rw)
rw.spansCnt = 0;
for (int y = 0; y < rw.yCnt; ++y) {
-
auto cover = 0;
auto x = 0;
auto cell = rw.yCells[y];
while (cell) {
-
_horizLine(rw, x, y, cover * (ONE_PIXEL * 2), cell->x - x);
cover += cell->cover;
auto area = cover * (ONE_PIXEL * 2) - cell->area;
+ //OPTIMIZE ME: This occurs 1 length span data.
if (area != 0 && cell->x >= 0)
_horizLine(rw, cell->x, y, area, 1);