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

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

Issue 2341923002: Harmonize FilterEffect::mapRect and mapPaintRect (Closed)
Patch Set: Rebase Created 4 years, 2 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 float k2() const; 52 float k2() const;
53 bool setK2(float); 53 bool setK2(float);
54 54
55 float k3() const; 55 float k3() const;
56 bool setK3(float); 56 bool setK3(float);
57 57
58 float k4() const; 58 float k4() const;
59 bool setK4(float); 59 bool setK4(float);
60 60
61 FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) const o verride;
62
63 TextStream& externalRepresentation(TextStream&, int indention) const overrid e; 61 TextStream& externalRepresentation(TextStream&, int indention) const overrid e;
64 62
65 protected: 63 protected:
66 bool mayProduceInvalidPreMultipliedPixels() override { return m_type == FECO MPOSITE_OPERATOR_ARITHMETIC; } 64 bool mayProduceInvalidPreMultipliedPixels() override { return m_type == FECO MPOSITE_OPERATOR_ARITHMETIC; }
67 65
68 private: 66 private:
69 FEComposite(Filter*, const CompositeOperationType&, float, float, float, flo at); 67 FEComposite(Filter*, const CompositeOperationType&, float, float, float, flo at);
70 68
69 FloatRect mapInputs(const FloatRect&) const override;
70
71 bool affectsTransparentPixels() const override;
72
71 sk_sp<SkImageFilter> createImageFilter() override; 73 sk_sp<SkImageFilter> createImageFilter() override;
72 sk_sp<SkImageFilter> createImageFilterWithoutValidation() override; 74 sk_sp<SkImageFilter> createImageFilterWithoutValidation() override;
73 sk_sp<SkImageFilter> createImageFilterInternal(bool requiresPMColorValidatio n); 75 sk_sp<SkImageFilter> createImageFilterInternal(bool requiresPMColorValidatio n);
74 76
75 CompositeOperationType m_type; 77 CompositeOperationType m_type;
76 float m_k1; 78 float m_k1;
77 float m_k2; 79 float m_k2;
78 float m_k3; 80 float m_k3;
79 float m_k4; 81 float m_k4;
80 }; 82 };
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif // FEComposite_h 86 #endif // FEComposite_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698