| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 University of Szeged | 2 * Copyright (C) 2010 University of Szeged |
| 3 * Copyright (C) 2010 Zoltan Herczeg | 3 * Copyright (C) 2010 Zoltan Herczeg |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 | 29 |
| 30 #include "core/platform/graphics/filters/FELighting.h" | 30 #include "core/platform/graphics/filters/FELighting.h" |
| 31 | 31 |
| 32 #include "core/platform/graphics/cpu/arm/filters/FELightingNEON.h" | |
| 33 #include <wtf/ParallelJobs.h> | 32 #include <wtf/ParallelJobs.h> |
| 34 | 33 |
| 35 #include "SkLightingImageFilter.h" | 34 #include "SkLightingImageFilter.h" |
| 36 #include "core/platform/graphics/filters/DistantLightSource.h" | 35 #include "core/platform/graphics/filters/DistantLightSource.h" |
| 37 #include "core/platform/graphics/filters/PointLightSource.h" | 36 #include "core/platform/graphics/filters/PointLightSource.h" |
| 38 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | 37 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" |
| 39 #include "core/platform/graphics/filters/SpotLightSource.h" | 38 #include "core/platform/graphics/filters/SpotLightSource.h" |
| 40 #include "core/platform/graphics/skia/NativeImageSkia.h" | 39 #include "core/platform/graphics/skia/NativeImageSkia.h" |
| 41 | 40 |
| 42 namespace WebCore { | 41 namespace WebCore { |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 480 |
| 482 GraphicsContext* dstContext = resultImage->context(); | 481 GraphicsContext* dstContext = resultImage->context(); |
| 483 | 482 |
| 484 SkPaint paint; | 483 SkPaint paint; |
| 485 paint.setImageFilter(createImageFilter(0))->unref(); | 484 paint.setImageFilter(createImageFilter(0))->unref(); |
| 486 dstContext->drawBitmap(nativeImage->bitmap(), drawingRegion.location().x(),
drawingRegion.location().y(), &paint); | 485 dstContext->drawBitmap(nativeImage->bitmap(), drawingRegion.location().x(),
drawingRegion.location().y(), &paint); |
| 487 return true; | 486 return true; |
| 488 } | 487 } |
| 489 | 488 |
| 490 } // namespace WebCore | 489 } // namespace WebCore |
| OLD | NEW |