| 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_DEV_PPB_BUFFER_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_BUFFER_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPB_BUFFER_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_BUFFER_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_module.h" | 9 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| 11 #include "ppapi/c/pp_stdint.h" | 11 #include "ppapi/c/pp_stdint.h" |
| 12 | 12 |
| 13 #define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.4" | 13 #define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.4" |
| 14 | 14 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 26 // if the resource is not a buffer. On failure, |*size_in_bytes| is not set. | 26 // if the resource is not a buffer. On failure, |*size_in_bytes| is not set. |
| 27 PP_Bool (*Describe)(PP_Resource resource, uint32_t* size_in_bytes); | 27 PP_Bool (*Describe)(PP_Resource resource, uint32_t* size_in_bytes); |
| 28 | 28 |
| 29 // Maps this buffer into the plugin address space and returns a pointer to the | 29 // Maps this buffer into the plugin address space and returns a pointer to the |
| 30 // beginning of the data. | 30 // beginning of the data. |
| 31 void* (*Map)(PP_Resource resource); | 31 void* (*Map)(PP_Resource resource); |
| 32 | 32 |
| 33 void (*Unmap)(PP_Resource resource); | 33 void (*Unmap)(PP_Resource resource); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 #endif // PPAPI_C_DEV_PPB_BUFFER_DEV_H_ | 36 #endif /* PPAPI_C_DEV_PPB_BUFFER_DEV_H_ */ |
| 37 |
| OLD | NEW |