diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/basegfx/utils/systemdependentdata.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/basegfx/utils/systemdependentdata.hxx b/include/basegfx/utils/systemdependentdata.hxx index 920a55043870..d5cc8d645eb6 100644 --- a/include/basegfx/utils/systemdependentdata.hxx +++ b/include/basegfx/utils/systemdependentdata.hxx @@ -89,6 +89,12 @@ namespace basegfx // a single, globally used one, but not necessarily SystemDependentDataManager& mrSystemDependentDataManager; + // Buffered CalculatedCycles, result of estimations using + // getHoldCyclesInSeconds and estimateUsageInBytes, executed + // using getHoldCyclesInSeconds. StartValue is 0 to detect + // not-yet-calculated state + sal_uInt32 mnCalculatedCycles; + public: SystemDependentData( SystemDependentDataManager& rSystemDependentDataManager); @@ -103,6 +109,12 @@ namespace basegfx // using getSystemDependentDataManager() SystemDependentDataManager& getSystemDependentDataManager() { return mrSystemDependentDataManager; } + // Calculate HoldCyclesInSeconds based on using + // getHoldCyclesInSeconds and estimateUsageInBytes, the + // result is crated once on-demand and buffered in + // mnCalculatedCycles + sal_uInt32 calculateCombinedHoldCyclesInSeconds() const; + // Number of cycles a SystemDependentDataManager should/might // hold this instance in seconds - does not have to be used, // but should be. Default implementation returns 60(s). Override to |