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

Unified Diff: Source/platform/graphics/cpu/arm/gpu/WebGLImageConversionNEON.h

Issue 604373003: [WIP] Supporting arm_neon_optional flag for blink platform. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/platform/graphics/cpu/arm/filters/FilterEffectNEON.h ('k') | Source/platform/graphics/filters/FEBlend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698