| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "platform/graphics/Color.h" | 24 #include "platform/graphics/Color.h" |
| 25 #include "platform/graphics/filters/FilterEffect.h" | 25 #include "platform/graphics/filters/FilterEffect.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class PLATFORM_EXPORT FEDropShadow : public FilterEffect { | 29 class PLATFORM_EXPORT FEDropShadow : public FilterEffect { |
| 30 public: | 30 public: |
| 31 static PassRefPtrWillBeRawPtr<FEDropShadow> create(Filter*, float, float, fl
oat, float, const Color&, float); | 31 static PassRefPtrWillBeRawPtr<FEDropShadow> create(Filter*, float, float, fl
oat, float, const Color&, float); |
| 32 | 32 |
| 33 float stdDeviationX() const { return m_stdX; } | |
| 34 void setStdDeviationX(float stdX) { m_stdX = stdX; } | |
| 35 | |
| 36 float stdDeviationY() const { return m_stdY; } | |
| 37 void setStdDeviationY(float stdY) { m_stdY = stdY; } | |
| 38 | |
| 39 float dx() const { return m_dx; } | |
| 40 void setDx(float dx) { m_dx = dx; } | |
| 41 | |
| 42 float dy() const { return m_dy; } | |
| 43 void setDy(float dy) { m_dy = dy; } | |
| 44 | |
| 45 Color shadowColor() const { return m_shadowColor; } | |
| 46 void setShadowColor(const Color& shadowColor) { m_shadowColor = shadowColor;
} | |
| 47 | |
| 48 float shadowOpacity() const { return m_shadowOpacity; } | |
| 49 void setShadowOpacity(float shadowOpacity) { m_shadowOpacity = shadowOpacity
; } | |
| 50 | |
| 51 FloatRect mapRect(const FloatRect&, bool forward = true) final; | 33 FloatRect mapRect(const FloatRect&, bool forward = true) final; |
| 52 | 34 |
| 53 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; | 35 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; |
| 54 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid
e; | 36 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid
e; |
| 55 | 37 |
| 56 private: | 38 private: |
| 57 FEDropShadow(Filter*, float, float, float, float, const Color&, float); | 39 FEDropShadow(Filter*, float, float, float, float, const Color&, float); |
| 58 | 40 |
| 59 float m_stdX; | 41 float m_stdX; |
| 60 float m_stdY; | 42 float m_stdY; |
| 61 float m_dx; | 43 float m_dx; |
| 62 float m_dy; | 44 float m_dy; |
| 63 Color m_shadowColor; | 45 Color m_shadowColor; |
| 64 float m_shadowOpacity; | 46 float m_shadowOpacity; |
| 65 }; | 47 }; |
| 66 | 48 |
| 67 } // namespace blink | 49 } // namespace blink |
| 68 | 50 |
| 69 #endif // FEDropShadow_h | 51 #endif // FEDropShadow_h |
| OLD | NEW |