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

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

Issue 2329803002: Drop FilterEffect::m_absolutePaintRect (Closed)
Patch Set: Add comment Created 4 years, 3 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 TextStream& externalRepresentation(TextStream&, int indention) const overrid e; 49 TextStream& externalRepresentation(TextStream&, int indention) const overrid e;
50 50
51 static inline void calculateSaturateComponents(float* components, float valu e); 51 static inline void calculateSaturateComponents(float* components, float valu e);
52 static inline void calculateHueRotateComponents(float* components, float val ue); 52 static inline void calculateHueRotateComponents(float* components, float val ue);
53 53
54 private: 54 private:
55 FEColorMatrix(Filter*, ColorMatrixType, const Vector<float>&); 55 FEColorMatrix(Filter*, ColorMatrixType, const Vector<float>&);
56 56
57 sk_sp<SkImageFilter> createImageFilter() override; 57 sk_sp<SkImageFilter> createImageFilter() override;
58 58
59 bool affectsTransparentPixels() override; 59 bool affectsTransparentPixels() const override;
60 60
61 ColorMatrixType m_type; 61 ColorMatrixType m_type;
62 62
63 // The m_values vector may not contain the right number of values. Always ch eck 63 // The m_values vector may not contain the right number of values. Always ch eck
64 // before accessing contents. 64 // before accessing contents.
65 Vector<float> m_values; 65 Vector<float> m_values;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // FEColorMatrix_h 70 #endif // FEColorMatrix_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698