John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 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 | package android.view; |
| 18 | |
John Reck | 04fc583 | 2014-02-05 16:38:25 -0800 | [diff] [blame] | 19 | import android.graphics.Bitmap; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 20 | import android.graphics.Rect; |
| 21 | import android.graphics.SurfaceTexture; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 22 | import android.os.Trace; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 23 | import android.view.Surface.OutOfResourcesException; |
| 24 | import android.view.View.AttachInfo; |
| 25 | |
| 26 | import java.io.PrintWriter; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 27 | |
| 28 | /** |
| 29 | * Hardware renderer that proxies the rendering to a render thread. Most calls |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 30 | * are currently synchronous. |
| 31 | * TODO: Make draw() async. |
| 32 | * TODO: Figure out how to share the DisplayList between two threads (global lock?) |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 33 | * |
| 34 | * The UI thread can block on the RenderThread, but RenderThread must never |
| 35 | * block on the UI thread. |
| 36 | * |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 37 | * ThreadedRenderer creates an instance of RenderProxy. RenderProxy in turn creates |
| 38 | * and manages a CanvasContext on the RenderThread. The CanvasContext is fully managed |
| 39 | * by the lifecycle of the RenderProxy. |
| 40 | * |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 41 | * Note that although currently the EGL context & surfaces are created & managed |
| 42 | * by the render thread, the goal is to move that into a shared structure that can |
| 43 | * be managed by both threads. EGLSurface creation & deletion should ideally be |
| 44 | * done on the UI thread and not the RenderThread to avoid stalling the |
| 45 | * RenderThread with surface buffer allocation. |
| 46 | * |
| 47 | * @hide |
| 48 | */ |
| 49 | public class ThreadedRenderer extends HardwareRenderer { |
| 50 | private static final String LOGTAG = "ThreadedRenderer"; |
| 51 | |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 52 | private static final Rect NULL_RECT = new Rect(); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 53 | |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 54 | private static final long NANOS_PER_MS = 1000000; |
| 55 | |
John Reck | f9be779 | 2014-05-02 18:21:16 -0700 | [diff] [blame] | 56 | // Keep in sync with DrawFrameTask.h SYNC_* flags |
| 57 | // Nothing interesting to report |
| 58 | private static final int SYNC_OK = 0x0; |
| 59 | // Needs a ViewRoot invalidate |
| 60 | private static final int SYNC_INVALIDATE_REQUIRED = 0x1; |
| 61 | |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 62 | private int mWidth, mHeight; |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 63 | private long mNativeProxy; |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 64 | private boolean mInitialized = false; |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 65 | private RenderNode mRootNode; |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 66 | private Choreographer mChoreographer; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 67 | |
John Reck | 3dfe19f | 2013-12-13 14:25:19 -0800 | [diff] [blame] | 68 | ThreadedRenderer(boolean translucent) { |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 69 | long rootNodePtr = nCreateRootRenderNode(); |
| 70 | mRootNode = RenderNode.adopt(rootNodePtr); |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 71 | mRootNode.setClipToBounds(false); |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 72 | mNativeProxy = nCreateProxy(translucent, rootNodePtr); |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 73 | |
| 74 | // Setup timing |
| 75 | mChoreographer = Choreographer.getInstance(); |
| 76 | nSetFrameInterval(mNativeProxy, mChoreographer.getFrameIntervalNanos()); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | @Override |
| 80 | void destroy(boolean full) { |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 81 | mInitialized = false; |
| 82 | updateEnabledState(null); |
John Reck | fae904d | 2014-04-14 11:01:57 -0700 | [diff] [blame] | 83 | nDestroyCanvasAndSurface(mNativeProxy); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 84 | } |
| 85 | |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 86 | private void updateEnabledState(Surface surface) { |
| 87 | if (surface == null || !surface.isValid()) { |
| 88 | setEnabled(false); |
| 89 | } else { |
| 90 | setEnabled(mInitialized); |
| 91 | } |
| 92 | } |
| 93 | |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 94 | @Override |
| 95 | boolean initialize(Surface surface) throws OutOfResourcesException { |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 96 | mInitialized = true; |
| 97 | updateEnabledState(surface); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 98 | return nInitialize(mNativeProxy, surface); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | @Override |
| 102 | void updateSurface(Surface surface) throws OutOfResourcesException { |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 103 | updateEnabledState(surface); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 104 | nUpdateSurface(mNativeProxy, surface); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 105 | } |
| 106 | |
| 107 | @Override |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 108 | void pauseSurface(Surface surface) { |
| 109 | nPauseSurface(mNativeProxy, surface); |
| 110 | } |
| 111 | |
| 112 | @Override |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 113 | void destroyHardwareResources(View view) { |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 114 | destroyResources(view); |
| 115 | // TODO: GLES20Canvas.flushCaches(GLES20Canvas.FLUSH_CACHES_LAYERS); |
| 116 | } |
| 117 | |
| 118 | private static void destroyResources(View view) { |
| 119 | view.destroyHardwareResources(); |
| 120 | |
| 121 | if (view instanceof ViewGroup) { |
| 122 | ViewGroup group = (ViewGroup) view; |
| 123 | |
| 124 | int count = group.getChildCount(); |
| 125 | for (int i = 0; i < count; i++) { |
| 126 | destroyResources(group.getChildAt(i)); |
| 127 | } |
| 128 | } |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | @Override |
| 132 | void invalidate(Surface surface) { |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 133 | updateSurface(surface); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | @Override |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 137 | boolean safelyRun(Runnable action) { |
John Reck | fc53ef27 | 2014-02-11 10:40:25 -0800 | [diff] [blame] | 138 | nRunWithGlContext(mNativeProxy, action); |
| 139 | return true; |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | @Override |
| 143 | void setup(int width, int height) { |
| 144 | mWidth = width; |
| 145 | mHeight = height; |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 146 | mRootNode.setLeftTopRightBottom(0, 0, mWidth, mHeight); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 147 | nSetup(mNativeProxy, width, height); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | @Override |
John Reck | 63a0667 | 2014-05-07 13:45:54 -0700 | [diff] [blame^] | 151 | void setOpaque(boolean opaque) { |
| 152 | nSetOpaque(mNativeProxy, opaque); |
| 153 | } |
| 154 | |
| 155 | @Override |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 156 | int getWidth() { |
| 157 | return mWidth; |
| 158 | } |
| 159 | |
| 160 | @Override |
| 161 | int getHeight() { |
| 162 | return mHeight; |
| 163 | } |
| 164 | |
| 165 | @Override |
| 166 | void dumpGfxInfo(PrintWriter pw) { |
| 167 | // TODO Auto-generated method stub |
| 168 | } |
| 169 | |
| 170 | @Override |
| 171 | long getFrameCount() { |
| 172 | // TODO Auto-generated method stub |
| 173 | return 0; |
| 174 | } |
| 175 | |
| 176 | @Override |
| 177 | boolean loadSystemProperties() { |
John Reck | e4280ba | 2014-05-05 16:39:37 -0700 | [diff] [blame] | 178 | return nLoadSystemProperties(mNativeProxy); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 179 | } |
| 180 | |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 181 | private void updateRootDisplayList(View view, HardwareDrawCallbacks callbacks) { |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 182 | view.mPrivateFlags |= View.PFLAG_DRAWN; |
| 183 | |
| 184 | view.mRecreateDisplayList = (view.mPrivateFlags & View.PFLAG_INVALIDATED) |
| 185 | == View.PFLAG_INVALIDATED; |
| 186 | view.mPrivateFlags &= ~View.PFLAG_INVALIDATED; |
| 187 | |
| 188 | Trace.traceBegin(Trace.TRACE_TAG_VIEW, "getDisplayList"); |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 189 | HardwareCanvas canvas = mRootNode.start(mWidth, mHeight); |
John Reck | 05e8584 | 2014-04-23 14:48:28 -0700 | [diff] [blame] | 190 | try { |
| 191 | callbacks.onHardwarePostDraw(canvas); |
| 192 | canvas.drawDisplayList(view.getDisplayList()); |
| 193 | callbacks.onHardwarePostDraw(canvas); |
| 194 | } finally { |
| 195 | mRootNode.end(canvas); |
| 196 | Trace.traceEnd(Trace.TRACE_TAG_VIEW); |
| 197 | } |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 198 | |
| 199 | view.mRecreateDisplayList = false; |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 200 | } |
| 201 | |
| 202 | @Override |
| 203 | void draw(View view, AttachInfo attachInfo, HardwareDrawCallbacks callbacks, Rect dirty) { |
| 204 | attachInfo.mIgnoreDirtyState = true; |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 205 | long frameTimeNanos = mChoreographer.getFrameTimeNanos(); |
| 206 | attachInfo.mDrawingTime = frameTimeNanos / NANOS_PER_MS; |
John Reck | bc0cc02 | 2014-04-11 16:08:14 -0700 | [diff] [blame] | 207 | |
| 208 | updateRootDisplayList(view, callbacks); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 209 | |
John Reck | 6313b92 | 2014-04-16 18:59:21 -0700 | [diff] [blame] | 210 | attachInfo.mIgnoreDirtyState = false; |
| 211 | |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 212 | if (dirty == null) { |
| 213 | dirty = NULL_RECT; |
| 214 | } |
John Reck | f9be779 | 2014-05-02 18:21:16 -0700 | [diff] [blame] | 215 | int syncResult = nSyncAndDrawFrame(mNativeProxy, frameTimeNanos, |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 216 | dirty.left, dirty.top, dirty.right, dirty.bottom); |
John Reck | f9be779 | 2014-05-02 18:21:16 -0700 | [diff] [blame] | 217 | if ((syncResult & SYNC_INVALIDATE_REQUIRED) != 0) { |
| 218 | attachInfo.mViewRootImpl.invalidate(); |
| 219 | } |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | @Override |
Ashok Bhat | 36bef0b | 2014-01-20 20:08:01 +0000 | [diff] [blame] | 223 | void detachFunctor(long functor) { |
John Reck | d3d8daf | 2014-04-10 15:00:13 -0700 | [diff] [blame] | 224 | // no-op, we never attach functors to need to detach them |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | @Override |
Ashok Bhat | 36bef0b | 2014-01-20 20:08:01 +0000 | [diff] [blame] | 228 | void attachFunctor(AttachInfo attachInfo, long functor) { |
John Reck | d3d8daf | 2014-04-10 15:00:13 -0700 | [diff] [blame] | 229 | invokeFunctor(functor, true); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 230 | } |
| 231 | |
| 232 | @Override |
Bo Liu | ae738a7 | 2014-04-27 16:22:04 -0700 | [diff] [blame] | 233 | void invokeFunctor(long functor, boolean waitForCompletion) { |
John Reck | 0d1f634 | 2014-03-28 20:30:27 -0700 | [diff] [blame] | 234 | nInvokeFunctor(mNativeProxy, functor, waitForCompletion); |
| 235 | } |
| 236 | |
| 237 | @Override |
John Reck | 19b6bcf | 2014-02-14 20:03:38 -0800 | [diff] [blame] | 238 | HardwareLayer createDisplayListLayer(int width, int height) { |
| 239 | long layer = nCreateDisplayListLayer(mNativeProxy, width, height); |
| 240 | return HardwareLayer.adoptDisplayListLayer(this, layer); |
| 241 | } |
| 242 | |
| 243 | @Override |
| 244 | HardwareLayer createTextureLayer() { |
| 245 | long layer = nCreateTextureLayer(mNativeProxy); |
| 246 | return HardwareLayer.adoptTextureLayer(this, layer); |
| 247 | } |
| 248 | |
| 249 | @Override |
| 250 | SurfaceTexture createSurfaceTexture(final HardwareLayer layer) { |
| 251 | final SurfaceTexture[] ret = new SurfaceTexture[1]; |
| 252 | nRunWithGlContext(mNativeProxy, new Runnable() { |
| 253 | @Override |
| 254 | public void run() { |
| 255 | ret[0] = layer.createSurfaceTexture(); |
| 256 | } |
| 257 | }); |
| 258 | return ret[0]; |
| 259 | } |
| 260 | |
| 261 | @Override |
| 262 | boolean copyLayerInto(final HardwareLayer layer, final Bitmap bitmap) { |
| 263 | return nCopyLayerInto(mNativeProxy, |
| 264 | layer.getDeferredLayerUpdater(), bitmap.mNativeBitmap); |
| 265 | } |
| 266 | |
| 267 | @Override |
| 268 | void pushLayerUpdate(HardwareLayer layer) { |
| 269 | // TODO: Remove this, it's not needed outside of GLRenderer |
| 270 | } |
| 271 | |
| 272 | @Override |
| 273 | void onLayerCreated(HardwareLayer layer) { |
| 274 | // TODO: Is this actually useful? |
| 275 | } |
| 276 | |
| 277 | @Override |
| 278 | void flushLayerUpdates() { |
| 279 | // TODO: Figure out what this should do or remove it |
| 280 | } |
| 281 | |
| 282 | @Override |
| 283 | void onLayerDestroyed(HardwareLayer layer) { |
| 284 | nDestroyLayer(mNativeProxy, layer.getDeferredLayerUpdater()); |
| 285 | } |
| 286 | |
| 287 | @Override |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 288 | void setName(String name) { |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 289 | } |
| 290 | |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 291 | @Override |
John Reck | 28ad7b5 | 2014-04-07 16:59:25 -0700 | [diff] [blame] | 292 | void fence() { |
| 293 | nFence(mNativeProxy); |
| 294 | } |
| 295 | |
| 296 | @Override |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 297 | protected void finalize() throws Throwable { |
| 298 | try { |
| 299 | nDeleteProxy(mNativeProxy); |
John Reck | 0ed751d | 2014-04-08 14:10:17 -0700 | [diff] [blame] | 300 | mNativeProxy = 0; |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 301 | } finally { |
| 302 | super.finalize(); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 303 | } |
| 304 | } |
| 305 | |
| 306 | /** @hide */ |
| 307 | public static native void postToRenderThread(Runnable runnable); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 308 | |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 309 | private static native long nCreateRootRenderNode(); |
| 310 | private static native long nCreateProxy(boolean translucent, long rootRenderNode); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 311 | private static native void nDeleteProxy(long nativeProxy); |
| 312 | |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 313 | private static native void nSetFrameInterval(long nativeProxy, long frameIntervalNanos); |
John Reck | e4280ba | 2014-05-05 16:39:37 -0700 | [diff] [blame] | 314 | private static native boolean nLoadSystemProperties(long nativeProxy); |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 315 | |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 316 | private static native boolean nInitialize(long nativeProxy, Surface window); |
| 317 | private static native void nUpdateSurface(long nativeProxy, Surface window); |
John Reck | f7d9c1d | 2014-04-09 10:01:03 -0700 | [diff] [blame] | 318 | private static native void nPauseSurface(long nativeProxy, Surface window); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 319 | private static native void nSetup(long nativeProxy, int width, int height); |
John Reck | 63a0667 | 2014-05-07 13:45:54 -0700 | [diff] [blame^] | 320 | private static native void nSetOpaque(long nativeProxy, boolean opaque); |
John Reck | be34f2f | 2014-03-10 08:58:44 -0700 | [diff] [blame] | 321 | private static native void nSetDisplayListData(long nativeProxy, long displayList, |
John Reck | 44fd8d2 | 2014-02-26 11:00:11 -0800 | [diff] [blame] | 322 | long newData); |
John Reck | f9be779 | 2014-05-02 18:21:16 -0700 | [diff] [blame] | 323 | private static native int nSyncAndDrawFrame(long nativeProxy, long frameTimeNanos, |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 324 | int dirtyLeft, int dirtyTop, int dirtyRight, int dirtyBottom); |
John Reck | fc53ef27 | 2014-02-11 10:40:25 -0800 | [diff] [blame] | 325 | private static native void nRunWithGlContext(long nativeProxy, Runnable runnable); |
John Reck | fae904d | 2014-04-14 11:01:57 -0700 | [diff] [blame] | 326 | private static native void nDestroyCanvasAndSurface(long nativeProxy); |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 327 | |
John Reck | 0d1f634 | 2014-03-28 20:30:27 -0700 | [diff] [blame] | 328 | private static native void nInvokeFunctor(long nativeProxy, long functor, boolean waitForCompletion); |
John Reck | 19b6bcf | 2014-02-14 20:03:38 -0800 | [diff] [blame] | 329 | |
| 330 | private static native long nCreateDisplayListLayer(long nativeProxy, int width, int height); |
| 331 | private static native long nCreateTextureLayer(long nativeProxy); |
| 332 | private static native boolean nCopyLayerInto(long nativeProxy, long layer, long bitmap); |
| 333 | private static native void nDestroyLayer(long nativeProxy, long layer); |
John Reck | 28ad7b5 | 2014-04-07 16:59:25 -0700 | [diff] [blame] | 334 | |
| 335 | private static native void nFence(long nativeProxy); |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 336 | } |