OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This file declares the RPC methods used to implement PPB_ImageData calls from |
| 6 # the plugin. The functions are described in ppapi/c/ppb_image_data.h. |
| 7 { |
| 8 'name': 'PpbImageDataRpc', |
| 9 'rpcs': [ |
| 10 {'name': 'PPB_ImageData_GetNativeImageDataFormat', |
| 11 'inputs': [], |
| 12 'outputs': [['format', 'int32_t'], |
| 13 ] |
| 14 }, |
| 15 {'name': 'PPB_ImageData_IsImageDataFormatSupported', |
| 16 'inputs': [['format', 'int32_t'], |
| 17 ], |
| 18 'outputs': [['success', 'int32_t'], |
| 19 ] |
| 20 }, |
| 21 {'name': 'PPB_ImageData_Create', |
| 22 'inputs': [['instance', 'PP_Instance'], |
| 23 ['format', 'int32_t'], |
| 24 ['size', 'char[]'], # PP_Size |
| 25 ['init_to_zero', 'int32_t'], |
| 26 ], |
| 27 'outputs': [['resource', 'PP_Resource'], |
| 28 ] |
| 29 }, |
| 30 {'name': 'PPB_ImageData_IsImageData', |
| 31 'inputs': [['resource', 'PP_Resource'], |
| 32 ], |
| 33 'outputs': [['success', 'int32_t'], |
| 34 ] |
| 35 }, |
| 36 {'name': 'PPB_ImageData_Describe', |
| 37 'inputs': [['resource', 'PP_Resource'], |
| 38 ], |
| 39 'outputs': [['desc', 'char[]'], # PP_ImageDataDesc |
| 40 ['shm', 'handle'], |
| 41 ['shm_size', 'int32_t'], |
| 42 ['success', 'int32_t'], |
| 43 ] |
| 44 }, |
| 45 ] |
| 46 } |
OLD | NEW |