OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 ComponentTransferFunction greenFunction() const; | 71 ComponentTransferFunction greenFunction() const; |
72 void setGreenFunction(const ComponentTransferFunction&); | 72 void setGreenFunction(const ComponentTransferFunction&); |
73 | 73 |
74 ComponentTransferFunction blueFunction() const; | 74 ComponentTransferFunction blueFunction() const; |
75 void setBlueFunction(const ComponentTransferFunction&); | 75 void setBlueFunction(const ComponentTransferFunction&); |
76 | 76 |
77 ComponentTransferFunction alphaFunction() const; | 77 ComponentTransferFunction alphaFunction() const; |
78 void setAlphaFunction(const ComponentTransferFunction&); | 78 void setAlphaFunction(const ComponentTransferFunction&); |
79 | 79 |
80 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
OVERRIDE; | 80 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
override; |
81 | 81 |
82 virtual TextStream& externalRepresentation(TextStream&, int indention) const
OVERRIDE; | 82 virtual TextStream& externalRepresentation(TextStream&, int indention) const
override; |
83 | 83 |
84 private: | 84 private: |
85 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const
ComponentTransferFunction& greenFunc, | 85 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const
ComponentTransferFunction& greenFunc, |
86 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); | 86 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); |
87 | 87 |
88 virtual void applySoftware() OVERRIDE; | 88 virtual void applySoftware() override; |
89 | 89 |
90 virtual bool affectsTransparentPixels() OVERRIDE; | 90 virtual bool affectsTransparentPixels() override; |
91 | 91 |
92 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig
ned char bValues[256], unsigned char aValues[256]); | 92 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig
ned char bValues[256], unsigned char aValues[256]); |
93 | 93 |
94 ComponentTransferFunction m_redFunc; | 94 ComponentTransferFunction m_redFunc; |
95 ComponentTransferFunction m_greenFunc; | 95 ComponentTransferFunction m_greenFunc; |
96 ComponentTransferFunction m_blueFunc; | 96 ComponentTransferFunction m_blueFunc; |
97 ComponentTransferFunction m_alphaFunc; | 97 ComponentTransferFunction m_alphaFunc; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
101 | 101 |
102 #endif // FEComponentTransfer_h | 102 #endif // FEComponentTransfer_h |
OLD | NEW |