OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Color shadowColor() const { return m_shadowColor; } | 46 Color shadowColor() const { return m_shadowColor; } |
47 void setShadowColor(const Color& shadowColor) { m_shadowColor = shadowColor;
} | 47 void setShadowColor(const Color& shadowColor) { m_shadowColor = shadowColor;
} |
48 | 48 |
49 float shadowOpacity() const { return m_shadowOpacity; } | 49 float shadowOpacity() const { return m_shadowOpacity; } |
50 void setShadowOpacity(float shadowOpacity) { m_shadowOpacity = shadowOpacity
; } | 50 void setShadowOpacity(float shadowOpacity) { m_shadowOpacity = shadowOpacity
; } |
51 | 51 |
52 static float calculateStdDeviation(float); | 52 static float calculateStdDeviation(float); |
53 | 53 |
54 virtual FloatRect mapRect(const FloatRect&, bool forward = true) OVERRIDE FI
NAL; | 54 virtual FloatRect mapRect(const FloatRect&, bool forward = true) OVERRIDE FI
NAL; |
55 | 55 |
56 virtual TextStream& externalRepresentation(TextStream&, int indention) const
; | 56 virtual TextStream& externalRepresentation(TextStream&, int indention) const
OVERRIDE; |
57 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
OVERRIDE; | 57 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 FEDropShadow(Filter*, float, float, float, float, const Color&, float); | 60 FEDropShadow(Filter*, float, float, float, float, const Color&, float); |
61 | 61 |
62 virtual void applySoftware() OVERRIDE; | 62 virtual void applySoftware() OVERRIDE; |
63 | 63 |
64 float m_stdX; | 64 float m_stdX; |
65 float m_stdY; | 65 float m_stdY; |
66 float m_dx; | 66 float m_dx; |
67 float m_dy; | 67 float m_dy; |
68 Color m_shadowColor; | 68 Color m_shadowColor; |
69 float m_shadowOpacity; | 69 float m_shadowOpacity; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace WebCore | 72 } // namespace WebCore |
73 | 73 |
74 #endif // FEDropShadow_h | 74 #endif // FEDropShadow_h |
OLD | NEW |