diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-10-03 15:55:29 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-10-06 20:31:22 +0200 |
commit | e650279db77281fe98aaff28e31c2269611c31e4 (patch) | |
tree | 2e497016dbe882d7557c4ee7ff66bb8b5d582dc2 /vcl/unx/generic | |
parent | dd36db168c658ebe588396255ad61363cc4ea7af (diff) |
Support estimateUsageInBytes for SystemDependentData
Change-Id: I6074035ed8f90e452915e9ecffdbe9363375e126
Reviewed-on: https://gerrit.libreoffice.org/61306
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index 0bfe098e7ef4..7ed38cc6eab5 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -1675,6 +1675,8 @@ public: const basegfx::B2DLineJoin& getJoin() const { return meJoin; } const css::drawing::LineCap& getCap() const { return meCap; } double getMiterMinimumAngle() const { return mfMiterMinimumAngle; } + + virtual sal_Int64 estimateUsageInBytes() const override; }; SystemDependentData_Triangulation::SystemDependentData_Triangulation( @@ -1693,6 +1695,18 @@ SystemDependentData_Triangulation::SystemDependentData_Triangulation( { } +sal_Int64 SystemDependentData_Triangulation::estimateUsageInBytes() const +{ + sal_Int64 nRetval(0); + + if(!maTriangles.empty()) + { + nRetval = maTriangles.size() * sizeof(basegfx::triangulator::B2DTriangle); + } + + return nRetval; +} + bool X11SalGraphicsImpl::drawPolyLine( const basegfx::B2DHomMatrix& rObjectToDevice, const basegfx::B2DPolygon& rPolygon, |