| 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 SKY_ENGINE_PLATFORM_GRAPHICS_GPU_WEBGLIMAGECONVERSION_H_ |
| 6 #define WebGLImageConversion_h | 6 #define SKY_ENGINE_PLATFORM_GRAPHICS_GPU_WEBGLIMAGECONVERSION_H_ |
| 7 | 7 |
| 8 #include "sky/engine/platform/PlatformExport.h" | 8 #include "sky/engine/platform/PlatformExport.h" |
| 9 #include "sky/engine/platform/graphics/Image.h" | 9 #include "sky/engine/platform/graphics/Image.h" |
| 10 #include "sky/engine/wtf/RefPtr.h" | 10 #include "sky/engine/wtf/RefPtr.h" |
| 11 #include "third_party/khronos/GLES2/gl2.h" | 11 #include "third_party/khronos/GLES2/gl2.h" |
| 12 #include "third_party/khronos/GLES2/gl2ext.h" | 12 #include "third_party/khronos/GLES2/gl2ext.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 class Image; | 15 class Image; |
| 16 class IntSize; | 16 class IntSize; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 blink | 166 } // namespace blink |
| 167 | 167 |
| 168 #endif // WebGLImageConversion_h | 168 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GPU_WEBGLIMAGECONVERSION_H_ |
| OLD | NEW |