| OLD | NEW |
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 DataFormatRGB16F, | 44 DataFormatRGB16F, |
| 45 DataFormatRGB32F, | 45 DataFormatRGB32F, |
| 46 DataFormatBGR8, | 46 DataFormatBGR8, |
| 47 DataFormatBGRA8, | 47 DataFormatBGRA8, |
| 48 DataFormatARGB8, | 48 DataFormatARGB8, |
| 49 DataFormatABGR8, | 49 DataFormatABGR8, |
| 50 DataFormatRGBA5551, | 50 DataFormatRGBA5551, |
| 51 DataFormatRGBA4444, | 51 DataFormatRGBA4444, |
| 52 DataFormatRGB565, | 52 DataFormatRGB565, |
| 53 DataFormatRGB10F11F11F, | 53 DataFormatRGB10F11F11F, |
| 54 DataFormatRGB5999, |
| 54 DataFormatRG8, | 55 DataFormatRG8, |
| 55 DataFormatRG8_S, | 56 DataFormatRG8_S, |
| 56 DataFormatRG16, | 57 DataFormatRG16, |
| 57 DataFormatRG16_S, | 58 DataFormatRG16_S, |
| 58 DataFormatRG32, | 59 DataFormatRG32, |
| 59 DataFormatRG32_S, | 60 DataFormatRG32_S, |
| 60 DataFormatRG16F, | 61 DataFormatRG16F, |
| 61 DataFormatRG32F, | 62 DataFormatRG32F, |
| 62 DataFormatR8, | 63 DataFormatR8, |
| 63 DataFormatR8_S, | 64 DataFormatR8_S, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // A sourceUnpackAlignment of zero indicates that the source | 194 // A sourceUnpackAlignment of zero indicates that the source |
| 194 // data is tightly packed. Non-zero values may take a slow path. | 195 // data is tightly packed. Non-zero values may take a slow path. |
| 195 // Destination data will have no gaps between rows. | 196 // Destination data will have no gaps between rows. |
| 196 // Implemented in GraphicsContext3DImagePacking.cpp | 197 // Implemented in GraphicsContext3DImagePacking.cpp |
| 197 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); | 198 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); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace blink | 201 } // namespace blink |
| 201 | 202 |
| 202 #endif // WebGLImageConversion_h | 203 #endif // WebGLImageConversion_h |
| OLD | NEW |