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

Side by Side Diff: Source/core/platform/graphics/filters/FilterEffect.h

Issue 89283002: Merge two determineFilterPrimitiveSubregion implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void setClipsToBounds(bool value) { m_clipsToBounds = value; } 148 void setClipsToBounds(bool value) { m_clipsToBounds = value; }
149 149
150 ColorSpace operatingColorSpace() const { return m_operatingColorSpace; } 150 ColorSpace operatingColorSpace() const { return m_operatingColorSpace; }
151 virtual void setOperatingColorSpace(ColorSpace colorSpace) { m_operatingColo rSpace = colorSpace; } 151 virtual void setOperatingColorSpace(ColorSpace colorSpace) { m_operatingColo rSpace = colorSpace; }
152 ColorSpace resultColorSpace() const { return m_resultColorSpace; } 152 ColorSpace resultColorSpace() const { return m_resultColorSpace; }
153 virtual void setResultColorSpace(ColorSpace colorSpace) { m_resultColorSpace = colorSpace; } 153 virtual void setResultColorSpace(ColorSpace colorSpace) { m_resultColorSpace = colorSpace; }
154 154
155 virtual void transformResultColorSpace(FilterEffect* in, const int) { in->tr ansformResultColorSpace(m_operatingColorSpace); } 155 virtual void transformResultColorSpace(FilterEffect* in, const int) { in->tr ansformResultColorSpace(m_operatingColorSpace); }
156 void transformResultColorSpace(ColorSpace); 156 void transformResultColorSpace(ColorSpace);
157 157
158 FloatRect determineFilterPrimitiveSubregion(); 158 FloatRect determineFilterPrimitiveSubregion(bool mapRectForward = true, bool clipToFilterRegion = false);
Stephen White 2013/11/26 22:11:14 Per http://www.chromium.org/blink/coding-style#TOC
rwlbuis 2013/11/26 22:28:36 Sounds great, fixing.
159 159
160 protected: 160 protected:
161 FilterEffect(Filter*); 161 FilterEffect(Filter*);
162 162
163 ImageBuffer* createImageBufferResult(); 163 ImageBuffer* createImageBufferResult();
164 Uint8ClampedArray* createUnmultipliedImageResult(); 164 Uint8ClampedArray* createUnmultipliedImageResult();
165 Uint8ClampedArray* createPremultipliedImageResult(); 165 Uint8ClampedArray* createPremultipliedImageResult();
166 166
167 // Return true if the filter will only operate correctly on valid RGBA value s, with 167 // Return true if the filter will only operate correctly on valid RGBA value s, with
168 // alpha in [0,255] and each color component in [0, alpha]. 168 // alpha in [0,255] and each color component in [0, alpha].
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs. 210 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs.
211 bool m_clipsToBounds; 211 bool m_clipsToBounds;
212 212
213 ColorSpace m_operatingColorSpace; 213 ColorSpace m_operatingColorSpace;
214 ColorSpace m_resultColorSpace; 214 ColorSpace m_resultColorSpace;
215 }; 215 };
216 216
217 } // namespace WebCore 217 } // namespace WebCore
218 218
219 #endif // FilterEffect_h 219 #endif // FilterEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698