Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ANDROID_RSDISPATCH_H |
| 18 | #define ANDROID_RSDISPATCH_H |
| 19 | |
Jason Sams | 66f0a16 | 2014-11-11 13:46:38 -0800 | [diff] [blame] | 20 | #include "rsInternalDefines.h" |
Miao Wang | 2bd78f2 | 2014-11-20 10:49:43 -0800 | [diff] [blame] | 21 | #include "jni.h" |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 22 | |
Miao Wang | f3213d7 | 2015-01-14 10:03:07 -0800 | [diff] [blame] | 23 | typedef void (*SetNativeLibDirFnPtr)(RsContext con, const char *nativeLibDir, size_t length); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 24 | typedef const void* (*AllocationGetTypeFnPtr)(RsContext con, RsAllocation va); |
Ashok Bhat | 6c59e3c | 2014-02-11 11:36:45 +0000 | [diff] [blame] | 25 | typedef void (*TypeGetNativeDataFnPtr)(RsContext, RsType, uintptr_t *typeData, uint32_t typeDataSize); |
| 26 | typedef void (*ElementGetNativeDataFnPtr)(RsContext, RsElement, uintptr_t *elemData, uint32_t elemDataSize); |
| 27 | typedef void (*ElementGetSubElementsFnPtr)(RsContext, RsElement, uintptr_t *ids, const char **names, uint32_t *arraySizes, uint32_t dataSize); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 28 | typedef RsDevice (*DeviceCreateFnPtr) (); |
| 29 | typedef void (*DeviceDestroyFnPtr) (RsDevice dev); |
| 30 | typedef void (*DeviceSetConfigFnPtr) (RsDevice dev, RsDeviceParam p, int32_t value); |
Tim Murray | 84e3dea | 2013-09-09 16:12:51 -0700 | [diff] [blame] | 31 | typedef RsContext (*ContextCreateFnPtr)(RsDevice vdev, uint32_t version, uint32_t sdkVersion, RsContextType ct, uint32_t flags); |
Tim Murray | 4a92d12 | 2013-07-22 10:56:18 -0700 | [diff] [blame] | 32 | typedef void (*GetNameFnPtr)(RsContext, void * obj, const char **name); |
Yang Ni | fef0cd4 | 2015-11-11 15:08:16 -0800 | [diff] [blame^] | 33 | typedef RsClosure (*ClosureCreateFnPtr)(RsContext, RsScriptKernelID, RsAllocation, RsScriptFieldID*, size_t, int64_t*, size_t, int*, size_t, RsClosure*, size_t, RsScriptFieldID*, size_t); |
| 34 | typedef RsClosure (*InvokeClosureCreateFnPtr)(RsContext, RsScriptInvokeID, const void*, const size_t, const RsScriptFieldID*, const size_t, const int64_t*, const size_t, const int*, const size_t); |
| 35 | typedef void (*ClosureSetArgFnPtr)(RsContext, RsClosure, uint32_t, uintptr_t, int); |
| 36 | typedef void (*ClosureSetGlobalFnPtr)(RsContext, RsClosure, RsScriptFieldID, int64_t, int); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 37 | typedef void (*ContextDestroyFnPtr) (RsContext); |
| 38 | typedef RsMessageToClientType (*ContextGetMessageFnPtr) (RsContext, void*, size_t, size_t*, size_t, uint32_t*, size_t); |
| 39 | typedef RsMessageToClientType (*ContextPeekMessageFnPtr) (RsContext, size_t*, size_t, uint32_t*, size_t); |
| 40 | typedef void (*ContextSendMessageFnPtr) (RsContext, uint32_t, const uint8_t*, size_t); |
| 41 | typedef void (*ContextInitToClientFnPtr) (RsContext); |
| 42 | typedef void (*ContextDeinitToClientFnPtr) (RsContext); |
| 43 | typedef RsType (*TypeCreateFnPtr) (RsContext, RsElement, uint32_t, uint32_t, uint32_t, bool, bool, uint32_t); |
| 44 | typedef RsAllocation (*AllocationCreateTypedFnPtr) (RsContext, RsType, RsAllocationMipmapControl, uint32_t, uintptr_t); |
Miao Wang | 47a5881 | 2015-07-23 21:59:16 -0700 | [diff] [blame] | 45 | typedef RsAllocation (*AllocationCreateStridedFnPtr) (RsContext, RsType, RsAllocationMipmapControl, uint32_t, uintptr_t, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 46 | typedef RsAllocation (*AllocationCreateFromBitmapFnPtr) (RsContext, RsType, RsAllocationMipmapControl, const void*, size_t, uint32_t); |
| 47 | typedef RsAllocation (*AllocationCubeCreateFromBitmapFnPtr) (RsContext, RsType, RsAllocationMipmapControl, const void*, size_t, uint32_t); |
| 48 | typedef RsNativeWindow (*AllocationGetSurfaceFnPtr) (RsContext, RsAllocation); |
| 49 | typedef void (*AllocationSetSurfaceFnPtr) (RsContext, RsAllocation, RsNativeWindow); |
| 50 | typedef void (*ContextFinishFnPtr) (RsContext); |
| 51 | typedef void (*ContextDumpFnPtr) (RsContext, int32_t); |
| 52 | typedef void (*ContextSetPriorityFnPtr) (RsContext, int32_t); |
| 53 | typedef void (*AssignNameFnPtr) (RsContext, RsObjectBase, const char*, size_t); |
| 54 | typedef void (*ObjDestroyFnPtr) (RsContext, RsAsyncVoidPtr); |
| 55 | typedef RsElement (*ElementCreateFnPtr) (RsContext, RsDataType, RsDataKind, bool, uint32_t); |
| 56 | typedef RsElement (*ElementCreate2FnPtr) (RsContext, const RsElement*, size_t, const char**, size_t, const size_t*, const uint32_t*, size_t); |
| 57 | typedef void (*AllocationCopyToBitmapFnPtr) (RsContext, RsAllocation, void*, size_t); |
| 58 | typedef void (*Allocation1DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, const void*, size_t); |
| 59 | typedef void (*Allocation1DElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, const void*, size_t, size_t); |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 60 | typedef void (*AllocationElementDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, const void*, size_t, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 61 | typedef void (*Allocation2DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, const void*, size_t, size_t); |
| 62 | typedef void (*Allocation3DDataFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, const void*, size_t, size_t); |
| 63 | typedef void (*AllocationGenerateMipmapsFnPtr) (RsContext, RsAllocation); |
| 64 | typedef void (*AllocationReadFnPtr) (RsContext, RsAllocation, void*, size_t); |
| 65 | typedef void (*Allocation1DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, void*, size_t); |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 66 | typedef void (*AllocationElementReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 67 | typedef void (*Allocation2DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, RsAllocationCubemapFace, uint32_t, uint32_t, void*, size_t, size_t); |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 68 | typedef void (*Allocation3DReadFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, size_t, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 69 | typedef void (*AllocationSyncAllFnPtr) (RsContext, RsAllocation, RsAllocationUsageType); |
| 70 | typedef void (*AllocationResize1DFnPtr) (RsContext, RsAllocation, uint32_t); |
| 71 | typedef void (*AllocationCopy2DRangeFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t); |
| 72 | typedef void (*AllocationCopy3DRangeFnPtr) (RsContext, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, RsAllocation, uint32_t, uint32_t, uint32_t, uint32_t); |
| 73 | typedef RsSampler (*SamplerCreateFnPtr) (RsContext, RsSamplerValue, RsSamplerValue, RsSamplerValue, RsSamplerValue, RsSamplerValue, float); |
| 74 | typedef void (*ScriptBindAllocationFnPtr) (RsContext, RsScript, RsAllocation, uint32_t); |
| 75 | typedef void (*ScriptSetTimeZoneFnPtr) (RsContext, RsScript, const char*, size_t); |
| 76 | typedef void (*ScriptInvokeFnPtr) (RsContext, RsScript, uint32_t); |
| 77 | typedef void (*ScriptInvokeVFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t); |
| 78 | typedef void (*ScriptForEachFnPtr) (RsContext, RsScript, uint32_t, RsAllocation, RsAllocation, const void*, size_t, const RsScriptCall*, size_t); |
Matt Wala | 394e9a6 | 2015-08-03 11:35:55 -0700 | [diff] [blame] | 79 | typedef void (*ScriptForEachMultiFnPtr) (RsContext, RsScript, uint32_t, RsAllocation*, size_t, RsAllocation, const void*, size_t, const RsScriptCall*, size_t); |
| 80 | typedef void (*ScriptReduceFnPtr) (RsContext, RsScript, uint32_t, RsAllocation, RsAllocation, const RsScriptCall*, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 81 | typedef void (*ScriptSetVarIFnPtr) (RsContext, RsScript, uint32_t, int); |
| 82 | typedef void (*ScriptSetVarObjFnPtr) (RsContext, RsScript, uint32_t, RsObjectBase); |
| 83 | typedef void (*ScriptSetVarJFnPtr) (RsContext, RsScript, uint32_t, int64_t); |
| 84 | typedef void (*ScriptSetVarFFnPtr) (RsContext, RsScript, uint32_t, float); |
| 85 | typedef void (*ScriptSetVarDFnPtr) (RsContext, RsScript, uint32_t, double); |
| 86 | typedef void (*ScriptSetVarVFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t); |
| 87 | typedef void (*ScriptGetVarVFnPtr) (RsContext, RsScript, uint32_t, void*, size_t); |
Stephen Hines | ac8d146 | 2014-06-25 00:01:23 -0700 | [diff] [blame] | 88 | typedef void (*ScriptSetVarVEFnPtr) (RsContext, RsScript, uint32_t, const void*, size_t, RsElement, const uint32_t*, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 89 | typedef RsScript (*ScriptCCreateFnPtr) (RsContext, const char*, size_t, const char*, size_t, const char*, size_t); |
| 90 | typedef RsScript (*ScriptIntrinsicCreateFnPtr) (RsContext, uint32_t id, RsElement); |
| 91 | typedef RsScriptKernelID (*ScriptKernelIDCreateFnPtr) (RsContext, RsScript, int, int); |
Yang Ni | eb9aa67 | 2015-01-27 14:32:25 -0800 | [diff] [blame] | 92 | typedef RsScriptInvokeID (*ScriptInvokeIDCreateFnPtr) (RsContext, RsScript, int); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 93 | typedef RsScriptFieldID (*ScriptFieldIDCreateFnPtr) (RsContext, RsScript, int); |
| 94 | typedef RsScriptGroup (*ScriptGroupCreateFnPtr) (RsContext, RsScriptKernelID*, size_t, RsScriptKernelID*, size_t, RsScriptKernelID*, size_t, RsScriptFieldID*, size_t, const RsType*, size_t); |
Yang Ni | 8b94222 | 2015-04-02 17:48:28 -0700 | [diff] [blame] | 95 | typedef RsScriptGroup2 (*ScriptGroup2CreateFnPtr)(RsContext, const char*, size_t, const char*, size_t, RsClosure*, size_t); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 96 | typedef void (*ScriptGroupSetOutputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation); |
| 97 | typedef void (*ScriptGroupSetInputFnPtr) (RsContext, RsScriptGroup, RsScriptKernelID, RsAllocation); |
| 98 | typedef void (*ScriptGroupExecuteFnPtr) (RsContext, RsScriptGroup); |
| 99 | typedef void (*AllocationIoSendFnPtr) (RsContext, RsAllocation); |
| 100 | typedef void (*AllocationIoReceiveFnPtr) (RsContext, RsAllocation); |
Miao Wang | 94280f8 | 2015-02-02 19:30:27 -0800 | [diff] [blame] | 101 | typedef void * (*AllocationGetPointerFnPtr) (RsContext, RsAllocation, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t stride_len); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 102 | |
Jason Sams | 66f0a16 | 2014-11-11 13:46:38 -0800 | [diff] [blame] | 103 | struct dispatchTable { |
Miao Wang | f3213d7 | 2015-01-14 10:03:07 -0800 | [diff] [blame] | 104 | SetNativeLibDirFnPtr SetNativeLibDir; |
| 105 | |
Miao Wang | cf067b8 | 2015-09-14 18:27:17 -0700 | [diff] [blame] | 106 | // Inserted by hand from rs.h |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 107 | AllocationGetTypeFnPtr AllocationGetType; |
| 108 | TypeGetNativeDataFnPtr TypeGetNativeData; |
| 109 | ElementGetNativeDataFnPtr ElementGetNativeData; |
| 110 | ElementGetSubElementsFnPtr ElementGetSubElements; |
| 111 | |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 112 | DeviceCreateFnPtr DeviceCreate; |
| 113 | DeviceDestroyFnPtr DeviceDestroy; |
| 114 | DeviceSetConfigFnPtr DeviceSetConfig; |
| 115 | ContextCreateFnPtr ContextCreate; |
Tim Murray | 4a92d12 | 2013-07-22 10:56:18 -0700 | [diff] [blame] | 116 | GetNameFnPtr GetName; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 117 | |
| 118 | // generated from rs.spec |
| 119 | ContextDestroyFnPtr ContextDestroy; |
| 120 | ContextGetMessageFnPtr ContextGetMessage; |
| 121 | ContextPeekMessageFnPtr ContextPeekMessage; |
| 122 | ContextSendMessageFnPtr ContextSendMessage; |
| 123 | ContextInitToClientFnPtr ContextInitToClient; |
| 124 | ContextDeinitToClientFnPtr ContextDeinitToClient; |
| 125 | TypeCreateFnPtr TypeCreate; |
| 126 | AllocationCreateTypedFnPtr AllocationCreateTyped; |
| 127 | AllocationCreateFromBitmapFnPtr AllocationCreateFromBitmap; |
| 128 | AllocationCubeCreateFromBitmapFnPtr AllocationCubeCreateFromBitmap; |
| 129 | AllocationGetSurfaceFnPtr AllocationGetSurface; |
| 130 | AllocationSetSurfaceFnPtr AllocationSetSurface; |
Yang Ni | 1ffd86b | 2015-01-07 09:16:40 -0800 | [diff] [blame] | 131 | ClosureCreateFnPtr ClosureCreate; |
Miao Wang | 974ca28 | 2015-03-30 15:35:02 -0700 | [diff] [blame] | 132 | InvokeClosureCreateFnPtr InvokeClosureCreate; |
Yang Ni | 1ffd86b | 2015-01-07 09:16:40 -0800 | [diff] [blame] | 133 | ClosureSetArgFnPtr ClosureSetArg; |
| 134 | ClosureSetGlobalFnPtr ClosureSetGlobal; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 135 | ContextFinishFnPtr ContextFinish; |
| 136 | ContextDumpFnPtr ContextDump; |
| 137 | ContextSetPriorityFnPtr ContextSetPriority; |
| 138 | AssignNameFnPtr AssignName; |
| 139 | ObjDestroyFnPtr ObjDestroy; |
| 140 | ElementCreateFnPtr ElementCreate; |
| 141 | ElementCreate2FnPtr ElementCreate2; |
| 142 | AllocationCopyToBitmapFnPtr AllocationCopyToBitmap; |
| 143 | Allocation1DDataFnPtr Allocation1DData; |
| 144 | Allocation1DElementDataFnPtr Allocation1DElementData; |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 145 | AllocationElementDataFnPtr AllocationElementData; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 146 | Allocation2DDataFnPtr Allocation2DData; |
| 147 | Allocation3DDataFnPtr Allocation3DData; |
| 148 | AllocationGenerateMipmapsFnPtr AllocationGenerateMipmaps; |
| 149 | AllocationReadFnPtr AllocationRead; |
| 150 | Allocation1DReadFnPtr Allocation1DRead; |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 151 | AllocationElementReadFnPtr AllocationElementRead; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 152 | Allocation2DReadFnPtr Allocation2DRead; |
Miao Wang | cc8cea7 | 2015-02-19 18:14:46 -0800 | [diff] [blame] | 153 | Allocation3DReadFnPtr Allocation3DRead; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 154 | AllocationSyncAllFnPtr AllocationSyncAll; |
| 155 | AllocationResize1DFnPtr AllocationResize1D; |
| 156 | AllocationCopy2DRangeFnPtr AllocationCopy2DRange; |
| 157 | AllocationCopy3DRangeFnPtr AllocationCopy3DRange; |
| 158 | SamplerCreateFnPtr SamplerCreate; |
| 159 | ScriptBindAllocationFnPtr ScriptBindAllocation; |
| 160 | ScriptSetTimeZoneFnPtr ScriptSetTimeZone; |
| 161 | ScriptInvokeFnPtr ScriptInvoke; |
| 162 | ScriptInvokeVFnPtr ScriptInvokeV; |
| 163 | ScriptForEachFnPtr ScriptForEach; |
Matt Wala | 394e9a6 | 2015-08-03 11:35:55 -0700 | [diff] [blame] | 164 | ScriptForEachMultiFnPtr ScriptForEachMulti; |
| 165 | ScriptReduceFnPtr ScriptReduce; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 166 | ScriptSetVarIFnPtr ScriptSetVarI; |
| 167 | ScriptSetVarObjFnPtr ScriptSetVarObj; |
| 168 | ScriptSetVarJFnPtr ScriptSetVarJ; |
| 169 | ScriptSetVarFFnPtr ScriptSetVarF; |
| 170 | ScriptSetVarDFnPtr ScriptSetVarD; |
| 171 | ScriptSetVarVFnPtr ScriptSetVarV; |
| 172 | ScriptGetVarVFnPtr ScriptGetVarV; |
| 173 | ScriptSetVarVEFnPtr ScriptSetVarVE; |
| 174 | ScriptCCreateFnPtr ScriptCCreate; |
| 175 | ScriptIntrinsicCreateFnPtr ScriptIntrinsicCreate; |
| 176 | ScriptKernelIDCreateFnPtr ScriptKernelIDCreate; |
Yang Ni | eb9aa67 | 2015-01-27 14:32:25 -0800 | [diff] [blame] | 177 | ScriptInvokeIDCreateFnPtr ScriptInvokeIDCreate; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 178 | ScriptFieldIDCreateFnPtr ScriptFieldIDCreate; |
| 179 | ScriptGroupCreateFnPtr ScriptGroupCreate; |
Yang Ni | 1ffd86b | 2015-01-07 09:16:40 -0800 | [diff] [blame] | 180 | ScriptGroup2CreateFnPtr ScriptGroup2Create; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 181 | ScriptGroupSetOutputFnPtr ScriptGroupSetOutput; |
| 182 | ScriptGroupSetInputFnPtr ScriptGroupSetInput; |
| 183 | ScriptGroupExecuteFnPtr ScriptGroupExecute; |
| 184 | AllocationIoSendFnPtr AllocationIoSend; |
| 185 | AllocationIoReceiveFnPtr AllocationIoReceive; |
Jason Sams | b8a94e2 | 2014-02-24 17:52:32 -0800 | [diff] [blame] | 186 | AllocationGetPointerFnPtr AllocationGetPointer; |
Miao Wang | 47a5881 | 2015-07-23 21:59:16 -0700 | [diff] [blame] | 187 | AllocationCreateStridedFnPtr AllocationCreateStrided; |
Jason Sams | 66f0a16 | 2014-11-11 13:46:38 -0800 | [diff] [blame] | 188 | }; |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 189 | |
Miao Wang | 8a6a717 | 2015-02-09 18:41:14 -0800 | [diff] [blame] | 190 | bool loadSymbols(void* handle, dispatchTable& dispatchTab, int device_api = 0); |
Miao Wang | 2bd78f2 | 2014-11-20 10:49:43 -0800 | [diff] [blame] | 191 | |
Miao Wang | cf067b8 | 2015-09-14 18:27:17 -0700 | [diff] [blame] | 192 | // USAGE_IO for RS Support lib |
Miao Wang | 2bd78f2 | 2014-11-20 10:49:43 -0800 | [diff] [blame] | 193 | typedef void (*sAllocationSetSurfaceFnPtr) (JNIEnv *, jobject, RsContext, RsAllocation, RsNativeWindow, dispatchTable); |
| 194 | struct ioSuppDT { |
Miao Wang | cf067b8 | 2015-09-14 18:27:17 -0700 | [diff] [blame] | 195 | // USAGE_IO_OUTPUT |
Miao Wang | 2bd78f2 | 2014-11-20 10:49:43 -0800 | [diff] [blame] | 196 | sAllocationSetSurfaceFnPtr sAllocationSetSurface; |
| 197 | }; |
| 198 | |
| 199 | bool loadIOSuppSyms(void* handleIO, ioSuppDT& ioDispatch); |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 200 | #endif |