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

Side by Side Diff: Source/platform/graphics/gpu/WebGLImageConversion.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, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGLImageConversion_h 5 #ifndef WebGLImageConversion_h
6 #define WebGLImageConversion_h 6 #define WebGLImageConversion_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/Image.h" 9 #include "platform/graphics/Image.h"
10 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 private: 156 private:
157 // Helper for packImageData/extractImageData/extractTextureData which implem ent packing of pixel 157 // Helper for packImageData/extractImageData/extractTextureData which implem ent packing of pixel
158 // data into the specified OpenGL destination format and type. 158 // data into the specified OpenGL destination format and type.
159 // A sourceUnpackAlignment of zero indicates that the source 159 // A sourceUnpackAlignment of zero indicates that the source
160 // data is tightly packed. Non-zero values may take a slow path. 160 // data is tightly packed. Non-zero values may take a slow path.
161 // Destination data will have no gaps between rows. 161 // Destination data will have no gaps between rows.
162 // Implemented in GraphicsContext3DImagePacking.cpp 162 // Implemented in GraphicsContext3DImagePacking.cpp
163 static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataForma t, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned des tinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool f lipY); 163 static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataForma t, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned des tinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool f lipY);
164 }; 164 };
165 165
166 namespace SIMD {
167 // None neon functions nothing do.
168 ALWAYS_INLINE void unpackOneRowOfARGB16LittleToRGBA8(const uint16_t*& source, ui nt8_t*& destination, unsigned& pixelsPerRow) { }
169 ALWAYS_INLINE void unpackOneRowOfBGRA16LittleToRGBA8(const uint16_t*& source, ui nt8_t*& destination, unsigned& pixelsPerRow) { }
170 ALWAYS_INLINE void unpackOneRowOfRGB16LittleToRGBA8(const uint16_t*& source, uin t8_t*& destination, unsigned& pixelsPerRow) { }
171 ALWAYS_INLINE void unpackOneRowOfRGB565ToRGBA8(const uint16_t*& source, uint8_t* & destination, unsigned& pixelsPerRow) { }
172 ALWAYS_INLINE void unpackOneRowOfRGBA16LittleToRGBA8(const uint16_t*& source, ui nt8_t*& destination, unsigned& pixelsPerRow) { }
173 ALWAYS_INLINE void unpackOneRowOfRGBA4444ToRGBA8(const uint16_t*& source, uint8_ t*& destination, unsigned& pixelsPerRow) { }
174 ALWAYS_INLINE void unpackOneRowOfRGBA5551ToRGBA8(const uint16_t*& source, uint8_ t*& destination, unsigned& pixelsPerRow) { }
175 ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort4444(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow) { }
176 ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort5551(const uint8_t*& source, uint16_t*& destination, unsigned& pixelsPerRow) { }
177 ALWAYS_INLINE void packOneRowOfRGBA8ToUnsignedShort565(const uint8_t*& source, u int16_t*& destination, unsigned& pixelsPerRow) { }
178 } // namespace SIMD
179
166 } // namespace blink 180 } // namespace blink
167 181
168 #endif // WebGLImageConversion_h 182 #endif // WebGLImageConversion_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FilterEffect.cpp ('k') | Source/platform/graphics/gpu/WebGLImageConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698