sw_engine shape: ++ comment for later optimization

Change-Id: Ie6cd622748b88e2bce0c9d9a79cc4528a95c9c5c
This commit is contained in:
Hermet Park 2020-06-03 19:16:44 +09:00
parent f335779ce5
commit 98edb4112b

View file

@ -245,6 +245,8 @@ void shapeTransformOutline(const Shape& shape, SwShape& sdata, const RenderTrans
bool shapeGenRle(const Shape& shape, SwShape& sdata, const SwSize& clip) 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 (!_updateBBox(sdata.outline, sdata.bbox)) goto end;
if (!_checkValid(sdata, clip)) goto end; if (!_checkValid(sdata, clip)) goto end;