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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | Annotate | Revision Log
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 20 matching lines...) Expand all
31 enum ColorMatrixType { 31 enum ColorMatrixType {
32 FECOLORMATRIX_TYPE_UNKNOWN = 0, 32 FECOLORMATRIX_TYPE_UNKNOWN = 0,
33 FECOLORMATRIX_TYPE_MATRIX = 1, 33 FECOLORMATRIX_TYPE_MATRIX = 1,
34 FECOLORMATRIX_TYPE_SATURATE = 2, 34 FECOLORMATRIX_TYPE_SATURATE = 2,
35 FECOLORMATRIX_TYPE_HUEROTATE = 3, 35 FECOLORMATRIX_TYPE_HUEROTATE = 3,
36 FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4 36 FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4
37 }; 37 };
38 38
39 class PLATFORM_EXPORT FEColorMatrix : public FilterEffect { 39 class PLATFORM_EXPORT FEColorMatrix : public FilterEffect {
40 public: 40 public:
41 static PassRefPtr<FEColorMatrix> create(Filter*, ColorMatrixType, const Vect or<float>&); 41 static PassRefPtrWillBeRawPtr<FEColorMatrix> create(Filter*, ColorMatrixType , const Vector<float>&);
42 42
43 ColorMatrixType type() const; 43 ColorMatrixType type() const;
44 bool setType(ColorMatrixType); 44 bool setType(ColorMatrixType);
45 45
46 const Vector<float>& values() const; 46 const Vector<float>& values() const;
47 bool setValues(const Vector<float>&); 47 bool setValues(const Vector<float>&);
48 48
49 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override; 49 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override;
50 50
51 virtual TextStream& externalRepresentation(TextStream&, int indention) const override; 51 virtual TextStream& externalRepresentation(TextStream&, int indention) const override;
52 52
53 static inline void calculateSaturateComponents(float* components, float valu e); 53 static inline void calculateSaturateComponents(float* components, float valu e);
54 static inline void calculateHueRotateComponents(float* components, float val ue); 54 static inline void calculateHueRotateComponents(float* components, float val ue);
55 55
56 private: 56 private:
57 FEColorMatrix(Filter*, ColorMatrixType, const Vector<float>&); 57 FEColorMatrix(Filter*, ColorMatrixType, const Vector<float>&);
58 58
59 virtual bool affectsTransparentPixels() override; 59 virtual bool affectsTransparentPixels() override;
60 60
61 ColorMatrixType m_type; 61 ColorMatrixType m_type;
62 Vector<float> m_values; 62 Vector<float> m_values;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // FEColorMatrix_h 67 #endif // FEColorMatrix_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEBlend.cpp ('k') | Source/platform/graphics/filters/FEColorMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698