33 class CHuiFxVg10FilterBase: public CHuiFxFilter |
33 class CHuiFxVg10FilterBase: public CHuiFxFilter |
34 { |
34 { |
35 public: // from CHuiFxFilter |
35 public: // from CHuiFxFilter |
36 virtual TBool Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, |
36 virtual TBool Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, |
37 CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource, |
37 CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource, |
38 const TRect& aTargetRect, const TRect& aSourceRect); |
38 const TRect& aTargetRect, const TRect& aSourceRect, TBool aHasSurface); |
39 |
39 |
40 private: |
40 private: |
41 virtual void DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight) = 0; |
41 virtual void DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight, TBool aHasSurface) = 0; |
42 protected: |
42 protected: |
43 TBool wasEnoughMemory(); |
43 TBool wasEnoughMemory(); |
44 |
44 |
45 template <class T> |
45 template <class T> |
46 inline T clamp(const T value, const T minimum, const T maximum) {return (Max(Min(maximum, value), minimum));} |
46 inline T clamp(const T value, const T minimum, const T maximum) {return (Max(Min(maximum, value), minimum));} |