Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: Source/platform/graphics/filters/FEDropShadow.h

Issue 184293003: Remove calculateStdDeviation function from Blur effect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Nice catch! Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FEGaussianBlur.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 float dy() const { return m_dy; } 43 float dy() const { return m_dy; }
44 void setDy(float dy) { m_dy = dy; } 44 void setDy(float dy) { m_dy = dy; }
45 45
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);
53
54 virtual FloatRect mapRect(const FloatRect&, bool forward = true) OVERRIDE FI NAL; 52 virtual FloatRect mapRect(const FloatRect&, bool forward = true) OVERRIDE FI NAL;
55 53
56 virtual TextStream& externalRepresentation(TextStream&, int indention) const OVERRIDE; 54 virtual TextStream& externalRepresentation(TextStream&, int indention) const OVERRIDE;
57 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRIDE; 55 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRIDE;
58 56
59 private: 57 private:
60 FEDropShadow(Filter*, float, float, float, float, const Color&, float); 58 FEDropShadow(Filter*, float, float, float, float, const Color&, float);
61 59
62 virtual void applySoftware() OVERRIDE; 60 virtual void applySoftware() OVERRIDE;
63 61
64 float m_stdX; 62 float m_stdX;
65 float m_stdY; 63 float m_stdY;
66 float m_dx; 64 float m_dx;
67 float m_dy; 65 float m_dy;
68 Color m_shadowColor; 66 Color m_shadowColor;
69 float m_shadowOpacity; 67 float m_shadowOpacity;
70 }; 68 };
71 69
72 } // namespace WebCore 70 } // namespace WebCore
73 71
74 #endif // FEDropShadow_h 72 #endif // FEDropShadow_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FEGaussianBlur.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698