OLD | NEW |
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) 2012 University of Szeged | 5 * Copyright (C) 2012 University of Szeged |
6 * Copyright (C) 2013 Google Inc. All rights reserved. | 6 * Copyright (C) 2013 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 , m_operatingColorSpace(ColorSpaceLinearRGB) | 42 , m_operatingColorSpace(ColorSpaceLinearRGB) |
43 , m_resultColorSpace(ColorSpaceDeviceRGB) | 43 , m_resultColorSpace(ColorSpaceDeviceRGB) |
44 { | 44 { |
45 ASSERT(m_filter); | 45 ASSERT(m_filter); |
46 } | 46 } |
47 | 47 |
48 FilterEffect::~FilterEffect() | 48 FilterEffect::~FilterEffect() |
49 { | 49 { |
50 } | 50 } |
51 | 51 |
| 52 void FilterEffect::trace(Visitor* visitor) |
| 53 { |
| 54 visitor->trace(m_inputEffects); |
| 55 } |
| 56 |
52 float FilterEffect::maxFilterArea() | 57 float FilterEffect::maxFilterArea() |
53 { | 58 { |
54 return kMaxFilterArea; | 59 return kMaxFilterArea; |
55 } | 60 } |
56 | 61 |
57 bool FilterEffect::isFilterSizeValid(const FloatRect& rect) | 62 bool FilterEffect::isFilterSizeValid(const FloatRect& rect) |
58 { | 63 { |
59 if (rect.width() < 0 || rect.height() < 0 | 64 if (rect.width() < 0 || rect.height() < 0 |
60 || (rect.height() * rect.width() > kMaxFilterArea)) | 65 || (rect.height() * rect.width() > kMaxFilterArea)) |
61 return false; | 66 return false; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 return m_imageFilters[index].get(); | 285 return m_imageFilters[index].get(); |
281 } | 286 } |
282 | 287 |
283 void FilterEffect::setImageFilter(ColorSpace colorSpace, bool requiresPMColorVal
idation, PassRefPtr<SkImageFilter> imageFilter) | 288 void FilterEffect::setImageFilter(ColorSpace colorSpace, bool requiresPMColorVal
idation, PassRefPtr<SkImageFilter> imageFilter) |
284 { | 289 { |
285 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation); | 290 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation); |
286 m_imageFilters[index] = imageFilter; | 291 m_imageFilters[index] = imageFilter; |
287 } | 292 } |
288 | 293 |
289 } // namespace blink | 294 } // namespace blink |
OLD | NEW |