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 # RPC methods used to implement PPB_Graphics2D interface. |
| 6 # See ppapi/c/ppb_graphics_2d.h for interface details. |
| 7 |
| 8 { |
| 9 'name': 'PpbGraphics2DRpc', |
| 10 'rpcs': [ |
| 11 {'name': 'PPB_Graphics2D_Create', |
| 12 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 13 ['size', 'char[]'], # PP_Size |
| 14 ['is_always_opaque', 'int32_t'], # PP_Bool |
| 15 ], |
| 16 'outputs': [['resource', 'PP_Resource'], # PP_Resource |
| 17 ] |
| 18 }, |
| 19 {'name': 'PPB_Graphics2D_IsGraphics2D', |
| 20 'inputs': [['resource', 'PP_Resource'], # PP_Resource |
| 21 ], |
| 22 'outputs': [['success', 'int32_t'], # PP_Bool |
| 23 ] |
| 24 }, |
| 25 {'name': 'PPB_Graphics2D_Describe', |
| 26 'inputs': [['graphics_2d', 'PP_Resource'], # PP_Resource |
| 27 ], |
| 28 'outputs': [['size', 'char[]'], # PP_Size |
| 29 ['is_always_opaque', 'int32_t'], # PP_Bool |
| 30 ['success', 'int32_t'], # PP_Bool |
| 31 ] |
| 32 }, |
| 33 {'name': 'PPB_Graphics2D_PaintImageData', |
| 34 'inputs': [['graphics_2d', 'PP_Resource'], # PP_Resource |
| 35 ['image', 'PP_Resource'], # PP_Resource |
| 36 ['top_left', 'char[]'], # PP_Point |
| 37 ['src_rect', 'char[]'], # PP_Rect |
| 38 ], |
| 39 'outputs': [] |
| 40 }, |
| 41 {'name': 'PPB_Graphics2D_Scroll', |
| 42 'inputs': [['graphics_2d', 'PP_Resource'], # PP_Resource |
| 43 ['clip_rect', 'char[]'], # PP_Rect |
| 44 ['amount', 'char[]'], # PP_Point |
| 45 ], |
| 46 'outputs': [] |
| 47 }, |
| 48 {'name': 'PPB_Graphics2D_ReplaceContents', |
| 49 'inputs': [['graphics_2d', 'PP_Resource'], # PP_Resource |
| 50 ['image', 'PP_Resource'], # PP_Resource |
| 51 ], |
| 52 'outputs': [] |
| 53 }, |
| 54 {'name': 'PPB_Graphics2D_Flush', |
| 55 'inputs': [['graphics_2d', 'PP_Resource'], # PP_Resource |
| 56 ['callback_id', 'int32_t'], # PP_CompletionCallback |
| 57 ], |
| 58 'outputs': [['pp_error', 'int32_t'], # int32_t |
| 59 ] |
| 60 }, |
| 61 ] |
| 62 } |
OLD | NEW |