diff options
author | Christopher Sherlock <chris.sherlock79@gmail.com> | 2025-02-23 14:37:45 +1100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2025-02-27 02:39:24 +0100 |
commit | 08d940d3b7b194808385bd25bac6aa3160013e17 (patch) | |
tree | adcdec7cd1b6928312b9e72ea1da8a24ed621bb5 /vcl/qa/cppunit/outdev.cxx | |
parent | 74ea65cfb29098171cbef1b003da1424f57fece1 (diff) |
tdf#74702 vcl: make OutputDevice classes aware of animation capability
Not all OutputDevice classes can animate. In fact, the only class that
can do this currently is WindowOutputDevice, everything else is a static
image.
Rather than check what type of class is being used, I'm introducing
CanAnimate().
Change-Id: I56339214e388aee2e7a564cf10a3f92629f0a6ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182049
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/outdev.cxx')
-rw-r--r-- | vcl/qa/cppunit/outdev.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx index a6dfd4f901d6..678189f1912e 100644 --- a/vcl/qa/cppunit/outdev.cxx +++ b/vcl/qa/cppunit/outdev.cxx @@ -887,9 +887,10 @@ public: { } - bool AcquireGraphics() const { return true; } - void ReleaseGraphics(bool) {} - bool UsePolyPolygonForComplexGradient() { return false; } + bool AcquireGraphics() const override { return true; } + void ReleaseGraphics(bool) override {} + bool UsePolyPolygonForComplexGradient() override { return false; } + bool CanAnimate() const override { return false; } bool testShouldDrawWavePixelAsRect(tools::Long nLineWidth) { |