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

Side by Side Diff: Source/platform/graphics/cpu/arm/filters/FEGaussianBlurNEON.h

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 University of Szeged 2 * Copyright (C) 2011 University of Szeged
3 * Copyright (C) 2011 Zoltan Herczeg 3 * Copyright (C) 2011 Zoltan Herczeg
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 11 matching lines...) Expand all
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef FEGaussianBlurNEON_h 27 #ifndef FEGaussianBlurNEON_h
28 #define FEGaussianBlurNEON_h 28 #define FEGaussianBlurNEON_h
29 29
30 #if HAVE(ARM_NEON_INTRINSICS) 30 #if HAVE(ARM_NEON_INTRINSICS)
31 31
32 #include "core/platform/graphics/cpu/arm/filters/NEONHelpers.h" 32 #include "platform/graphics/cpu/arm/filters/NEONHelpers.h"
33 #include "core/platform/graphics/filters/FEGaussianBlur.h" 33 #include "platform/graphics/filters/FEGaussianBlur.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 inline void boxBlurNEON(Uint8ClampedArray* srcPixelArray, Uint8ClampedArray* dst PixelArray, 37 inline void boxBlurNEON(Uint8ClampedArray* srcPixelArray, Uint8ClampedArray* dst PixelArray,
38 unsigned dx, int dxLeft, int dxRight, int stride, int st rideLine, int effectWidth, int effectHeight) 38 unsigned dx, int dxLeft, int dxRight, int stride, int st rideLine, int effectWidth, int effectHeight)
39 { 39 {
40 uint32_t* sourcePixel = reinterpret_cast<uint32_t*>(srcPixelArray->data()); 40 uint32_t* sourcePixel = reinterpret_cast<uint32_t*>(srcPixelArray->data());
41 uint32_t* destinationPixel = reinterpret_cast<uint32_t*>(dstPixelArray->data ()); 41 uint32_t* destinationPixel = reinterpret_cast<uint32_t*>(dstPixelArray->data ());
42 42
43 float32x4_t deltaX = vdupq_n_f32(1.0 / dx); 43 float32x4_t deltaX = vdupq_n_f32(1.0 / dx);
(...skipping 25 matching lines...) Expand all
69 } 69 }
70 } 70 }
71 } 71 }
72 } 72 }
73 73
74 } // namespace WebCore 74 } // namespace WebCore
75 75
76 #endif // HAVE(ARM_NEON_INTRINSICS) 76 #endif // HAVE(ARM_NEON_INTRINSICS)
77 77
78 #endif // FEGaussianBlurNEON_h 78 #endif // FEGaussianBlurNEON_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/cpu/arm/GraphicsContext3DNEON.h ('k') | Source/platform/graphics/cpu/arm/filters/NEONHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698