| OLD | NEW |
| 1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. | 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 | 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 # This file declares the RPC methods used to implement PPB_ImageData calls from | 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. | 6 # the plugin. The functions are described in ppapi/c/ppb_image_data.h. |
| 7 { | 7 { |
| 8 'name': 'PpbGraphics2DRpc', | 8 'name': 'PpbGraphics2DRpc', |
| 9 'rpcs': [ | 9 'rpcs': [ |
| 10 {'name': 'PPB_Graphics2D_Create', | 10 {'name': 'PPB_Graphics2D_Create', |
| 11 'inputs': [['module', 'int64_t'], | 11 'inputs': [['module', 'PP_Module'], |
| 12 ['size', 'int32_t[]'], | 12 ['size', 'int32_t[]'], |
| 13 ['is_always_opaque', 'int32_t'], | 13 ['is_always_opaque', 'int32_t'], |
| 14 ], | 14 ], |
| 15 'outputs': [['resource', 'int64_t'], | 15 'outputs': [['resource', 'PP_Resource'], |
| 16 ] | 16 ] |
| 17 }, | 17 }, |
| 18 {'name': 'PPB_Graphics2D_IsGraphics2D', | 18 {'name': 'PPB_Graphics2D_IsGraphics2D', |
| 19 'inputs': [['resource', 'int64_t'], | 19 'inputs': [['resource', 'PP_Resource'], |
| 20 ], | 20 ], |
| 21 'outputs': [['success', 'int32_t'], | 21 'outputs': [['success', 'int32_t'], |
| 22 ] | 22 ] |
| 23 }, | 23 }, |
| 24 {'name': 'PPB_Graphics2D_Describe', | 24 {'name': 'PPB_Graphics2D_Describe', |
| 25 'inputs': [['graphics_2d', 'int64_t'], | 25 'inputs': [['graphics_2d', 'PP_Resource'], |
| 26 ], | 26 ], |
| 27 'outputs': [['size', 'int32_t[]'], | 27 'outputs': [['size', 'int32_t[]'], |
| 28 ['is_always_opaque', 'int32_t'], | 28 ['is_always_opaque', 'int32_t'], |
| 29 ['success', 'int32_t'], | 29 ['success', 'int32_t'], |
| 30 ] | 30 ] |
| 31 }, | 31 }, |
| 32 {'name': 'PPB_Graphics2D_PaintImageData', | 32 {'name': 'PPB_Graphics2D_PaintImageData', |
| 33 'inputs': [['graphics_2d', 'int64_t'], | 33 'inputs': [['graphics_2d', 'PP_Resource'], |
| 34 ['image', 'int64_t'], | 34 ['image', 'PP_Resource'], |
| 35 ['top_left', 'int32_t[]'], | 35 ['top_left', 'int32_t[]'], |
| 36 ['src_rect', 'int32_t[]'], | 36 ['src_rect', 'int32_t[]'], |
| 37 ], | 37 ], |
| 38 'outputs': [] | 38 'outputs': [] |
| 39 }, | 39 }, |
| 40 {'name': 'PPB_Graphics2D_Scroll', | 40 {'name': 'PPB_Graphics2D_Scroll', |
| 41 'inputs': [['graphics_2d', 'int64_t'], | 41 'inputs': [['graphics_2d', 'PP_Resource'], |
| 42 ['clip_rect', 'int32_t[]'], | 42 ['clip_rect', 'int32_t[]'], |
| 43 ['amount', 'int32_t[]'], | 43 ['amount', 'int32_t[]'], |
| 44 ], | 44 ], |
| 45 'outputs': [] | 45 'outputs': [] |
| 46 }, | 46 }, |
| 47 {'name': 'PPB_Graphics2D_ReplaceContents', | 47 {'name': 'PPB_Graphics2D_ReplaceContents', |
| 48 'inputs': [['graphics_2d', 'int64_t'], | 48 'inputs': [['graphics_2d', 'PP_Resource'], |
| 49 ['image', 'int64_t'], | 49 ['image', 'PP_Resource'], |
| 50 ], | 50 ], |
| 51 'outputs': [] | 51 'outputs': [] |
| 52 }, | 52 }, |
| 53 # Flush is in upcall.srpc, because it can be called from other | 53 # Flush is in upcall.srpc, because it can be called from other |
| 54 # threads. | 54 # threads. |
| 55 ] | 55 ] |
| 56 } | 56 } |
| OLD | NEW |