#ifndef SVGFEImage_h
#define SVGFEImage_h
#if ENABLE(SVG) && ENABLE(FILTERS)
#include "FilterEffect.h"
#include "SVGPreserveAspectRatio.h"
namespace WebCore {
class Document;
class Image;
class RenderObject;
class FEImage : public FilterEffect {
public:
static PassRefPtr<FEImage> createWithImage(Filter*, PassRefPtr<Image>, const SVGPreserveAspectRatio&);
static PassRefPtr<FEImage> createWithIRIReference(Filter*, Document*, const String&, const SVGPreserveAspectRatio&);
virtual void platformApplySoftware();
#if ENABLE(OPENCL)
virtual bool platformApplyOpenCL();
#endif
virtual void dump();
virtual void determineAbsolutePaintRect();
virtual FilterEffectType filterEffectType() const { return FilterEffectTypeImage; }
virtual TextStream& externalRepresentation(TextStream&, int indention) const;
private:
virtual ~FEImage() { }
FEImage(Filter*, PassRefPtr<Image>, const SVGPreserveAspectRatio&);
FEImage(Filter*, Document*, const String&, const SVGPreserveAspectRatio&);
RenderObject* referencedRenderer() const;
RefPtr<Image> m_image;
Document* m_document;
String m_href;
SVGPreserveAspectRatio m_preserveAspectRatio;
};
}
#endif // ENABLE(SVG) && ENABLE(FILTERS)
#endif // SVGFEImage_h