| 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_Core calls from | 5 # This file declares the RPC methods used to implement PPB_Core calls from |
| 6 # the plugin. The functions are described in ppapi/c/ppb_core.h. | 6 # the plugin. The functions are described in ppapi/c/ppb_core.h. |
| 7 { | 7 { |
| 8 'name': 'PpbCoreRpc', | 8 'name': 'PpbCoreRpc', |
| 9 'rpcs': [ | 9 'rpcs': [ |
| 10 # Implements calls to increment the reference count on a resource. | 10 # Implements calls to increment the reference count on a resource. |
| 11 {'name': 'PPB_Core_AddRefResource', | 11 {'name': 'PPB_Core_AddRefResource', |
| 12 'inputs': [['resource', 'int64_t'], | 12 'inputs': [['resource', 'int64_t'], |
| 13 ], | 13 ], |
| 14 'outputs': [] | 14 'outputs': [] |
| 15 }, | 15 }, |
| 16 # Implements calls to decrement the reference count on a resource. | 16 # Implements calls to decrement the reference count on a resource. |
| 17 {'name': 'PPB_Core_ReleaseResource', | 17 {'name': 'PPB_Core_ReleaseResource', |
| 18 'inputs': [['resource', 'int64_t'], | 18 'inputs': [['resource', 'int64_t'], |
| 19 ], | 19 ], |
| 20 'outputs': [] | 20 'outputs': [] |
| 21 }, | 21 }, |
| 22 # Implements calls to decrement more than one reference count on a |
| 23 # resource. This does not exist in PPB_Core, we implement it as an |
| 24 # optimization. |
| 25 {'name': 'ReleaseResourceMultipleTimes', |
| 26 'inputs': [['resource', 'int64_t'], |
| 27 ['count', 'int32_t'] |
| 28 ], |
| 29 'outputs': [] |
| 30 }, |
| 22 # MemAlloc and MemFree do not require RPCs to the browser. | 31 # MemAlloc and MemFree do not require RPCs to the browser. |
| 23 # Implements calls to get the time. | 32 # Implements calls to get the time. |
| 24 {'name': 'PPB_Core_GetTime', | 33 {'name': 'PPB_Core_GetTime', |
| 25 'inputs': [], | 34 'inputs': [], |
| 26 'outputs': [['time', 'double'], | 35 'outputs': [['time', 'double'], |
| 27 ] | 36 ] |
| 28 }, | 37 }, |
| 29 # CallOnMainThread is done on a different channel. | 38 # CallOnMainThread is done on a different channel. |
| 30 ] | 39 ] |
| 31 } | 40 } |
| OLD | NEW |