| Index: Source/platform/graphics/cpu/arm/gpu/WebGLImageConversionNEON.h
|
| diff --git a/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h b/Source/platform/graphics/cpu/arm/gpu/WebGLImageConversionNEON.h
|
| similarity index 90%
|
| rename from Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h
|
| rename to Source/platform/graphics/cpu/arm/gpu/WebGLImageConversionNEON.h
|
| index 28195124c627f203e7a694c3674b3054087bbdb0..915a7019f6b3eb868df2cb3dc4530f39348749c9 100644
|
| --- a/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h
|
| +++ b/Source/platform/graphics/cpu/arm/gpu/WebGLImageConversionNEON.h
|
| @@ -34,7 +34,7 @@ namespace blink {
|
|
|
| namespace SIMD {
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfRGBA16LittleToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfRGBA16LittleToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 16;
|
| @@ -51,7 +51,7 @@ ALWAYS_INLINE void unpackOneRowOfRGBA16LittleToRGBA8(const uint16_t*& source, ui
|
| pixelsPerRow = tailComponents / 4;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfRGB16LittleToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfRGB16LittleToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 3;
|
| unsigned tailComponents = componentsPerRow % 24;
|
| @@ -72,7 +72,7 @@ ALWAYS_INLINE void unpackOneRowOfRGB16LittleToRGBA8(const uint16_t*& source, uin
|
| pixelsPerRow = tailComponents / 3;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfARGB16LittleToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfARGB16LittleToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 32;
|
| @@ -93,7 +93,7 @@ ALWAYS_INLINE void unpackOneRowOfARGB16LittleToRGBA8(const uint16_t*& source, ui
|
| pixelsPerRow = tailComponents / 4;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfBGRA16LittleToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfBGRA16LittleToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 32;
|
| @@ -114,7 +114,7 @@ ALWAYS_INLINE void unpackOneRowOfBGRA16LittleToRGBA8(const uint16_t*& source, ui
|
| pixelsPerRow = tailComponents / 4;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfRGBA4444ToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfRGBA4444ToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned tailPixels = pixelsPerRow % 8;
|
| unsigned pixelSize = pixelsPerRow - tailPixels;
|
| @@ -142,7 +142,7 @@ ALWAYS_INLINE void unpackOneRowOfRGBA4444ToRGBA8(const uint16_t*& source, uint8_
|
| pixelsPerRow = tailPixels;
|
| }
|
|
|
| -ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort4444(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort4444NEON(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 32;
|
| @@ -170,7 +170,7 @@ ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort4444(const uint8_t*& source,
|
| pixelsPerRow = tailComponents / 4;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfRGBA5551ToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfRGBA5551ToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned tailPixels = pixelsPerRow % 8;
|
| unsigned pixelSize = pixelsPerRow - tailPixels;
|
| @@ -202,7 +202,7 @@ ALWAYS_INLINE void unpackOneRowOfRGBA5551ToRGBA8(const uint16_t*& source, uint8_
|
| pixelsPerRow = tailPixels;
|
| }
|
|
|
| -ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort5551(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort5551NEON(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 32;
|
| @@ -234,7 +234,7 @@ ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort5551(const uint8_t*& source,
|
| pixelsPerRow = tailComponents / 4;
|
| }
|
|
|
| -ALWAYS_INLINE void unpackOneRowOfRGB565ToRGBA8(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void unpackOneRowOfRGB565ToRGBA8NEON(const uint16_t*& source, uint8_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned tailPixels = pixelsPerRow % 8;
|
| unsigned pixelSize = pixelsPerRow - tailPixels;
|
| @@ -266,7 +266,7 @@ ALWAYS_INLINE void unpackOneRowOfRGB565ToRGBA8(const uint16_t*& source, uint8_t*
|
| pixelsPerRow = tailPixels;
|
| }
|
|
|
| -ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort565(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| +ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort565NEON(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow)
|
| {
|
| unsigned componentsPerRow = pixelsPerRow * 4;
|
| unsigned tailComponents = componentsPerRow % 32;
|
|
|