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

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

Issue 182113002: Use implicit conversion to FloatRect to remove overloaded filterSize (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 MapRectForward = 1, 60 MapRectForward = 1,
61 ClipToFilterRegion = 1 << 1 61 ClipToFilterRegion = 1 << 1
62 }; 62 };
63 63
64 typedef int DetermineSubregionFlags; 64 typedef int DetermineSubregionFlags;
65 65
66 class PLATFORM_EXPORT FilterEffect : public RefCounted<FilterEffect> { 66 class PLATFORM_EXPORT FilterEffect : public RefCounted<FilterEffect> {
67 public: 67 public:
68 virtual ~FilterEffect(); 68 virtual ~FilterEffect();
69 69
70 static bool isFilterSizeValid(const IntRect&);
71 static bool isFilterSizeValid(const FloatRect&); 70 static bool isFilterSizeValid(const FloatRect&);
72 static float maxFilterArea(); 71 static float maxFilterArea();
73 72
74 void clearResult(); 73 void clearResult();
75 void clearResultsRecursive(); 74 void clearResultsRecursive();
76 75
77 ImageBuffer* asImageBuffer(); 76 ImageBuffer* asImageBuffer();
78 PassRefPtr<Uint8ClampedArray> asUnmultipliedImage(const IntRect&); 77 PassRefPtr<Uint8ClampedArray> asUnmultipliedImage(const IntRect&);
79 PassRefPtr<Uint8ClampedArray> asPremultipliedImage(const IntRect&); 78 PassRefPtr<Uint8ClampedArray> asPremultipliedImage(const IntRect&);
80 void copyUnmultipliedImage(Uint8ClampedArray* destination, const IntRect&); 79 void copyUnmultipliedImage(Uint8ClampedArray* destination, const IntRect&);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs. 235 // Should the effect clip to its primitive region, or expand to use the comb ined region of its inputs.
237 bool m_clipsToBounds; 236 bool m_clipsToBounds;
238 237
239 ColorSpace m_operatingColorSpace; 238 ColorSpace m_operatingColorSpace;
240 ColorSpace m_resultColorSpace; 239 ColorSpace m_resultColorSpace;
241 }; 240 };
242 241
243 } // namespace WebCore 242 } // namespace WebCore
244 243
245 #endif // FilterEffect_h 244 #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