| 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 "platform/graphics/skia/ImagePixelLocker.h" | 10 #include "platform/graphics/skia/ImagePixelLocker.h" |
| 11 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 12 #include "platform/wtf/Allocator.h" |
| 13 #include "platform/wtf/Optional.h" |
| 14 #include "platform/wtf/RefPtr.h" |
| 12 #include "third_party/khronos/GLES2/gl2.h" | 15 #include "third_party/khronos/GLES2/gl2.h" |
| 13 #include "third_party/khronos/GLES2/gl2ext.h" | 16 #include "third_party/khronos/GLES2/gl2ext.h" |
| 14 #include "third_party/khronos/GLES3/gl3.h" | 17 #include "third_party/khronos/GLES3/gl3.h" |
| 15 #include "wtf/Allocator.h" | |
| 16 #include "wtf/Optional.h" | |
| 17 #include "wtf/RefPtr.h" | |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 class Image; | 20 class Image; |
| 21 class IntSize; | 21 class IntSize; |
| 22 | 22 |
| 23 // Helper functions for texture uploading and pixel readback. | 23 // Helper functions for texture uploading and pixel readback. |
| 24 class PLATFORM_EXPORT WebGLImageConversion final { | 24 class PLATFORM_EXPORT WebGLImageConversion final { |
| 25 STATIC_ONLY(WebGLImageConversion); | 25 STATIC_ONLY(WebGLImageConversion); |
| 26 | 26 |
| 27 public: | 27 public: |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 uint8_t* destinationData); | 284 uint8_t* destinationData); |
| 285 static void packPixels(const uint8_t* sourceData, | 285 static void packPixels(const uint8_t* sourceData, |
| 286 DataFormat sourceDataFormat, | 286 DataFormat sourceDataFormat, |
| 287 unsigned pixelsPerRow, | 287 unsigned pixelsPerRow, |
| 288 uint8_t* destinationData); | 288 uint8_t* destinationData); |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| 292 | 292 |
| 293 #endif // WebGLImageConversion_h | 293 #endif // WebGLImageConversion_h |
| OLD | NEW |