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

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

Issue 1184713005: Removing unused methods from FEComponentTransfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/FEComponentTransfer.cpp » ('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) 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 float offset; 57 float offset;
58 58
59 Vector<float> tableValues; 59 Vector<float> tableValues;
60 }; 60 };
61 61
62 class PLATFORM_EXPORT FEComponentTransfer : public FilterEffect { 62 class PLATFORM_EXPORT FEComponentTransfer : public FilterEffect {
63 public: 63 public:
64 static PassRefPtrWillBeRawPtr<FEComponentTransfer> create(Filter*, const Com ponentTransferFunction& redFunc, const ComponentTransferFunction& greenFunc, 64 static PassRefPtrWillBeRawPtr<FEComponentTransfer> create(Filter*, const Com ponentTransferFunction& redFunc, const ComponentTransferFunction& greenFunc,
65 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti on& alphaFunc); 65 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti on& alphaFunc);
66 66
67 ComponentTransferFunction redFunction() const;
68 void setRedFunction(const ComponentTransferFunction&);
69
70 ComponentTransferFunction greenFunction() const;
71 void setGreenFunction(const ComponentTransferFunction&);
72
73 ComponentTransferFunction blueFunction() const;
74 void setBlueFunction(const ComponentTransferFunction&);
75
76 ComponentTransferFunction alphaFunction() const;
77 void setAlphaFunction(const ComponentTransferFunction&);
78
79 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override; 67 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override;
80 68
81 virtual TextStream& externalRepresentation(TextStream&, int indention) const override; 69 virtual TextStream& externalRepresentation(TextStream&, int indention) const override;
82 70
83 private: 71 private:
84 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const ComponentTransferFunction& greenFunc, 72 FEComponentTransfer(Filter*, const ComponentTransferFunction& redFunc, const ComponentTransferFunction& greenFunc,
85 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti on& alphaFunc); 73 const ComponentTransferFunction& blueFunc, const ComponentTransferFuncti on& alphaFunc);
86 74
87 virtual bool affectsTransparentPixels() override; 75 virtual bool affectsTransparentPixels() override;
88 76
89 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig ned char bValues[256], unsigned char aValues[256]); 77 void getValues(unsigned char rValues[256], unsigned char gValues[256], unsig ned char bValues[256], unsigned char aValues[256]);
90 78
91 ComponentTransferFunction m_redFunc; 79 ComponentTransferFunction m_redFunc;
92 ComponentTransferFunction m_greenFunc; 80 ComponentTransferFunction m_greenFunc;
93 ComponentTransferFunction m_blueFunc; 81 ComponentTransferFunction m_blueFunc;
94 ComponentTransferFunction m_alphaFunc; 82 ComponentTransferFunction m_alphaFunc;
95 }; 83 };
96 84
97 } // namespace blink 85 } // namespace blink
98 86
99 #endif // FEComponentTransfer_h 87 #endif // FEComponentTransfer_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FEComponentTransfer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698