Remove unused BColorModifierStack from VclProcessor constructor
Was not used and - if needed - should be done by embedding the sequence of Primitives sent to it to a ModifiedColorPrimitive2D containing the intended BColorModifier. Keep clases as simple as possible. Change-Id: I99de18cc971d6b396ad291ef88b59bd7599f9196 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174314 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
This commit is contained in:
committed by
Armin Le Grand
parent
fc0cb364ae
commit
0acab5124c
@@ -69,9 +69,8 @@ using namespace com::sun::star;
|
||||
namespace drawinglayer::processor2d
|
||||
{
|
||||
VclPixelProcessor2D::VclPixelProcessor2D(const geometry::ViewInformation2D& rViewInformation,
|
||||
OutputDevice& rOutDev,
|
||||
const basegfx::BColorModifierStack& rInitStack)
|
||||
: VclProcessor2D(rViewInformation, rOutDev, rInitStack)
|
||||
OutputDevice& rOutDev)
|
||||
: VclProcessor2D(rViewInformation, rOutDev)
|
||||
, m_nOrigAntiAliasing(rOutDev.GetAntialiasing())
|
||||
, m_bRenderSimpleTextDirect(
|
||||
officecfg::Office::Common::Drawinglayer::RenderSimpleTextDirect::get())
|
||||
|
||||
@@ -100,9 +100,7 @@ class VclPixelProcessor2D final : public VclProcessor2D
|
||||
|
||||
public:
|
||||
/// constructor/destructor
|
||||
VclPixelProcessor2D(const geometry::ViewInformation2D& rViewInformation, OutputDevice& rOutDev,
|
||||
const basegfx::BColorModifierStack& rInitStack
|
||||
= basegfx::BColorModifierStack());
|
||||
VclPixelProcessor2D(const geometry::ViewInformation2D& rViewInformation, OutputDevice& rOutDev);
|
||||
virtual ~VclPixelProcessor2D() override;
|
||||
};
|
||||
} // end of namespace drawinglayer::processor2d
|
||||
|
||||
@@ -1602,10 +1602,10 @@ void VclProcessor2D::adaptTextToFillDrawMode() const
|
||||
// process support
|
||||
|
||||
VclProcessor2D::VclProcessor2D(const geometry::ViewInformation2D& rViewInformation,
|
||||
OutputDevice& rOutDev, basegfx::BColorModifierStack aInitStack)
|
||||
OutputDevice& rOutDev)
|
||||
: BaseProcessor2D(rViewInformation)
|
||||
, mpOutputDevice(&rOutDev)
|
||||
, maBColorModifierStack(std::move(aInitStack))
|
||||
, maBColorModifierStack()
|
||||
, mnPolygonStrokePrimitive2D(0)
|
||||
{
|
||||
// set digit language, derived from SvtCTLOptions to have the correct
|
||||
|
||||
@@ -110,8 +110,7 @@ protected:
|
||||
|
||||
public:
|
||||
// constructor/destructor
|
||||
VclProcessor2D(const geometry::ViewInformation2D& rViewInformation, OutputDevice& rOutDev,
|
||||
basegfx::BColorModifierStack aInitStack = basegfx::BColorModifierStack());
|
||||
VclProcessor2D(const geometry::ViewInformation2D& rViewInformation, OutputDevice& rOutDev);
|
||||
virtual ~VclProcessor2D() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user