| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 float intercept; | 55 float intercept; |
| 56 float amplitude; | 56 float amplitude; |
| 57 float exponent; | 57 float exponent; |
| 58 float offset; | 58 float offset; |
| 59 | 59 |
| 60 Vector<float> tableValues; | 60 Vector<float> tableValues; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class PLATFORM_EXPORT FEComponentTransfer final : public FilterEffect { | 63 class PLATFORM_EXPORT FEComponentTransfer final : public FilterEffect { |
| 64 public: | 64 public: |
| 65 static RawPtr<FEComponentTransfer> create(Filter*, const ComponentTransferFu
nction& redFunc, const ComponentTransferFunction& greenFunc, | 65 static FEComponentTransfer* create(Filter*, const ComponentTransferFunction&
redFunc, const ComponentTransferFunction& greenFunc, |
| 66 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); | 66 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); |
| 67 | 67 |
| 68 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; | 68 TextStream& externalRepresentation(TextStream&, int indention) const overrid
e; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const
ComponentTransferFunction& greenFunc, | 71 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const
ComponentTransferFunction& greenFunc, |
| 72 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); | 72 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti
on& alphaFunc); |
| 73 | 73 |
| 74 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) overrid
e; | 74 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) overrid
e; |
| 75 | 75 |
| 76 bool affectsTransparentPixels() override; | 76 bool affectsTransparentPixels() override; |
| 77 | 77 |
| 78 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig
ned char bValues[256], unsigned char aValues[256]); | 78 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig
ned char bValues[256], unsigned char aValues[256]); |
| 79 | 79 |
| 80 ComponentTransferFunction m_redFunc; | 80 ComponentTransferFunction m_redFunc; |
| 81 ComponentTransferFunction m_greenFunc; | 81 ComponentTransferFunction m_greenFunc; |
| 82 ComponentTransferFunction m_blueFunc; | 82 ComponentTransferFunction m_blueFunc; |
| 83 ComponentTransferFunction m_alphaFunc; | 83 ComponentTransferFunction m_alphaFunc; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // FEComponentTransfer_h | 88 #endif // FEComponentTransfer_h |
| OLD | NEW |