sw_engine shape: ++ comment for later optimization 95/235295/1
authorHermet Park <chuneon.park@samsung.com>
Wed, 3 Jun 2020 10:16:44 +0000 (19:16 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 3 Jun 2020 10:17:42 +0000 (19:17 +0900)
Change-Id: Ie6cd622748b88e2bce0c9d9a79cc4528a95c9c5c

src/lib/sw_engine/tvgSwShape.cpp

index a4fa7fb..30b79c8 100644 (file)
@@ -245,6 +245,8 @@ void shapeTransformOutline(const Shape& shape, SwShape& sdata, const RenderTrans
 
 bool shapeGenRle(const Shape& shape, SwShape& sdata, const SwSize& clip)
 {
+    /* OPTIMIZE ME: We may avoid this bounding box calculation in this stage
+       if this shape has stroke and stroke bbox can be used here... */
     if (!_updateBBox(sdata.outline, sdata.bbox)) goto end;
     if (!_checkValid(sdata, clip)) goto end;