| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 PPAPI_C_PPB_IMAGE_DATA_H_ | 5 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ |
| 6 #define PPAPI_C_PPB_IMAGE_DATA_H_ | 6 #define PPAPI_C_PPB_IMAGE_DATA_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_macros.h" | 9 #include "ppapi/c/pp_macros.h" |
| 10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Size of the bitmap in pixels. | 24 // Size of the bitmap in pixels. |
| 25 struct PP_Size size; | 25 struct PP_Size size; |
| 26 | 26 |
| 27 // The row width in bytes. This may be different than width * 4 since there | 27 // The row width in bytes. This may be different than width * 4 since there |
| 28 // may be padding at the end of the lines. | 28 // may be padding at the end of the lines. |
| 29 int32_t stride; | 29 int32_t stride; |
| 30 }; | 30 }; |
| 31 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); | 31 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); |
| 32 | 32 |
| 33 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3" | 33 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.2" |
| 34 | 34 |
| 35 /** | 35 /** |
| 36 * @file | 36 * @file |
| 37 * Defines the API ... | 37 * Defines the API ... |
| 38 * | 38 * |
| 39 * @addtogroup PPB | 39 * @addtogroup PPB |
| 40 * @{ | 40 * @{ |
| 41 */ | 41 */ |
| 42 | 42 |
| 43 struct PPB_ImageData { | 43 struct PPB_ImageData { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void* (*Map)(PP_Resource image_data); | 94 void* (*Map)(PP_Resource image_data); |
| 95 | 95 |
| 96 void (*Unmap)(PP_Resource image_data); | 96 void (*Unmap)(PP_Resource image_data); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @} | 100 * @} |
| 101 * End addtogroup PPB | 101 * End addtogroup PPB |
| 102 */ | 102 */ |
| 103 #endif // PPAPI_C_PPB_IMAGE_DATA_H_ | 103 #endif // PPAPI_C_PPB_IMAGE_DATA_H_ |
| OLD | NEW |