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

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

Issue 225163002: Remove software path from filters: purge unused applySkia. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/FilterEffect.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) 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 // If a pre-multiplied image, check every pixel for validity and correct if necessary. 193 // If a pre-multiplied image, check every pixel for validity and correct if necessary.
194 void forceValidPreMultipliedPixels(); 194 void forceValidPreMultipliedPixels();
195 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; 195 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const;
196 196
197 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); 197 void addAbsolutePaintRect(const FloatRect& absolutePaintRect);
198 198
199 private: 199 private:
200 void applyRecursive(); 200 void applyRecursive();
201 virtual void applySoftware() = 0; 201 virtual void applySoftware() = 0;
202 virtual bool applySkia() { return false; }
203 202
204 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des tination, const IntRect&); 203 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des tination, const IntRect&);
205 204
206 OwnPtr<ImageBuffer> m_imageBufferResult; 205 OwnPtr<ImageBuffer> m_imageBufferResult;
207 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult; 206 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult;
208 RefPtr<Uint8ClampedArray> m_premultipliedImageResult; 207 RefPtr<Uint8ClampedArray> m_premultipliedImageResult;
209 FilterEffectVector m_inputEffects; 208 FilterEffectVector m_inputEffects;
210 209
211 bool m_alphaImage; 210 bool m_alphaImage;
212 211
(...skipping 22 matching lines...) Expand all
235 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs. 234 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs.
236 bool m_clipsToBounds; 235 bool m_clipsToBounds;
237 236
238 ColorSpace m_operatingColorSpace; 237 ColorSpace m_operatingColorSpace;
239 ColorSpace m_resultColorSpace; 238 ColorSpace m_resultColorSpace;
240 }; 239 };
241 240
242 } // namespace WebCore 241 } // namespace WebCore
243 242
244 #endif // FilterEffect_h 243 #endif // FilterEffect_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/filters/FilterEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698