| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "platform/graphics/ImageBuffer.h" | 34 #include "platform/graphics/ImageBuffer.h" |
| 35 #include "platform/graphics/filters/FilterEffect.h" | 35 #include "platform/graphics/filters/FilterEffect.h" |
| 36 #include "platform/graphics/filters/FilterOperations.h" | 36 #include "platform/graphics/filters/FilterOperations.h" |
| 37 #include "platform/graphics/filters/SourceGraphic.h" | 37 #include "platform/graphics/filters/SourceGraphic.h" |
| 38 #include "platform/graphics/skia/SkiaUtils.h" | 38 #include "platform/graphics/skia/SkiaUtils.h" |
| 39 #include "public/platform/WebPoint.h" | 39 #include "public/platform/WebPoint.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 SkiaImageFilterBuilder::SkiaImageFilterBuilder() | 43 SkiaImageFilterBuilder::SkiaImageFilterBuilder() |
| 44 : m_context(0) | 44 : m_context(nullptr) |
| 45 , m_sourceGraphic(0) | 45 , m_sourceGraphic(nullptr) |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 SkiaImageFilterBuilder::SkiaImageFilterBuilder(GraphicsContext* context) | 49 SkiaImageFilterBuilder::SkiaImageFilterBuilder(GraphicsContext* context) |
| 50 : m_context(context) | 50 : m_context(context) |
| 51 , m_sourceGraphic(0) | 51 , m_sourceGraphic(nullptr) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 SkiaImageFilterBuilder::~SkiaImageFilterBuilder() | 55 SkiaImageFilterBuilder::~SkiaImageFilterBuilder() |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::build(FilterEffect* effect, Co
lorSpace colorSpace, bool destinationRequiresValidPreMultipliedPixels) | 59 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::build(FilterEffect* effect, Co
lorSpace colorSpace, bool destinationRequiresValidPreMultipliedPixels) |
| 60 { | 60 { |
| 61 if (!effect) | 61 if (!effect) |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 filters->appendReferenceFilter(filter.get()); | 184 filters->appendReferenceFilter(filter.get()); |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 | 187 |
| 188 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::buildTransform(const AffineTra
nsform& transform, SkImageFilter* input) | 188 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::buildTransform(const AffineTra
nsform& transform, SkImageFilter* input) |
| 189 { | 189 { |
| 190 return adoptRef(SkMatrixImageFilter::Create(affineTransformToSkMatrix(transf
orm), SkPaint::kHigh_FilterLevel, input)); | 190 return adoptRef(SkMatrixImageFilter::Create(affineTransformToSkMatrix(transf
orm), SkPaint::kHigh_FilterLevel, input)); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace blink | 193 } // namespace blink |
| OLD | NEW |