Bug 950312 - Part 2: Add Effect for BlendModes. r=nical

This commit is contained in:
Matt Woodrow
2014-05-09 21:48:29 +12:00
parent 129afe0635
commit 15b808349e
10 changed files with 41 additions and 0 deletions

View File

@@ -96,6 +96,19 @@ struct EffectMask : public Effect
gfx::Matrix4x4 mMaskTransform;
};
struct EffectBlendMode : public Effect
{
EffectBlendMode(gfx::CompositionOp aBlendMode)
: Effect(EffectTypes::BLEND_MODE)
, mBlendMode(aBlendMode)
{ }
virtual const char* Name() { return "EffectBlendMode"; }
virtual void PrintInfo(nsACString& aTo, const char* aPrefix);
gfx::CompositionOp mBlendMode;
};
// Render to a render target rather than the screen.
struct EffectRenderTarget : public TexturedEffect
{