| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 for (int i = 0; i < 4; i++) | 92 for (int i = 0; i < 4; i++) |
| 93 m_imageFilters[i] = nullptr; | 93 m_imageFilters[i] = nullptr; |
| 94 } | 94 } |
| 95 | 95 |
| 96 Color FilterEffect::adaptColorToOperatingColorSpace(const Color& deviceColor) { | 96 Color FilterEffect::adaptColorToOperatingColorSpace(const Color& deviceColor) { |
| 97 // |deviceColor| is assumed to be DeviceRGB. | 97 // |deviceColor| is assumed to be DeviceRGB. |
| 98 return ColorSpaceUtilities::convertColor(deviceColor, operatingColorSpace()); | 98 return ColorSpaceUtilities::convertColor(deviceColor, operatingColorSpace()); |
| 99 } | 99 } |
| 100 | 100 |
| 101 TextStream& FilterEffect::externalRepresentation(TextStream& ts, int) const { | 101 TextStream& FilterEffect::externalRepresentation(TextStream& ts, int) const { |
| 102 // FIXME: We should dump the subRegions of the filter primitives here later. T
his isn't | 102 // FIXME: We should dump the subRegions of the filter primitives here later. |
| 103 // possible at the moment, because we need more detailed informations from the
target object. | 103 // This isn't possible at the moment, because we need more detailed |
| 104 // information from the target object. |
| 104 return ts; | 105 return ts; |
| 105 } | 106 } |
| 106 | 107 |
| 107 sk_sp<SkImageFilter> FilterEffect::createImageFilter() { | 108 sk_sp<SkImageFilter> FilterEffect::createImageFilter() { |
| 108 return nullptr; | 109 return nullptr; |
| 109 } | 110 } |
| 110 | 111 |
| 111 sk_sp<SkImageFilter> FilterEffect::createImageFilterWithoutValidation() { | 112 sk_sp<SkImageFilter> FilterEffect::createImageFilterWithoutValidation() { |
| 112 return createImageFilter(); | 113 return createImageFilter(); |
| 113 } | 114 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 157 } |
| 157 | 158 |
| 158 void FilterEffect::setImageFilter(ColorSpace colorSpace, | 159 void FilterEffect::setImageFilter(ColorSpace colorSpace, |
| 159 bool requiresPMColorValidation, | 160 bool requiresPMColorValidation, |
| 160 sk_sp<SkImageFilter> imageFilter) { | 161 sk_sp<SkImageFilter> imageFilter) { |
| 161 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation); | 162 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation); |
| 162 m_imageFilters[index] = std::move(imageFilter); | 163 m_imageFilters[index] = std::move(imageFilter); |
| 163 } | 164 } |
| 164 | 165 |
| 165 } // namespace blink | 166 } // namespace blink |
| OLD | NEW |