vcl: migrate AddGradientActions() from OutputDevice to Gradient

Change-Id: I815fb3ce366c93b81f60d19eeed906dc7288708a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127030
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
Chris Sherlock
2021-12-18 23:39:25 +11:00
committed by Tomaž Vajngerl
parent 88d8c9af71
commit 22f52db0be
14 changed files with 715 additions and 618 deletions

View File

@@ -720,9 +720,8 @@ namespace cppcanvas::internal
}
GDIMetaFile aTmpMtf;
rParms.mrVDev.AddGradientActions( rPoly.GetBoundRect(),
rGradient,
aTmpMtf );
Gradient aGradient(rGradient);
aGradient.AddGradientActions( rPoly.GetBoundRect(), aTmpMtf );
createActions( aTmpMtf, rParms, bSubsettableActions );