common canvas: revise clear method.
authorHermet Park <chuneon.park@samsung.com>
Thu, 8 Oct 2020 02:55:50 +0000 (11:55 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 8 Oct 2020 03:15:45 +0000 (12:15 +0900)
commit798817f7222d111bd2839b04291564b85a8f81b4
tree797f4a7a6fbb8149b2ccade1ac9b0478f83e46e8
parentb38edb2175f3045f9e9422fa0b93e416d493f862
common canvas: revise clear method.

Canvas::clear() introduces a new argument "free" that deterimes freeing the retained paints.

If free is true, Canvas won't delete the retained paints so that user keep paints valid.

In this scenario, user must have paints pointers, free them manually or push them again to the canvas.

This scenario is useful if user wants to re-organize paints order in the list or reuse them.

Change-Id: Ib8c9125dafed301430eee4cd293434b8d84c0ed7
inc/thorvg.h
src/lib/tvgBezier.cpp
src/lib/tvgCanvas.cpp
src/lib/tvgCanvasImpl.h
src/lib/tvgPaint.h