Loading rs/java/android/renderscript/Allocation.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1868,7 +1868,7 @@ public class Allocation extends BaseObj { } } } } static void sendBufferNotification(int id) { static void sendBufferNotification(long id) { synchronized(mAllocationMap) { synchronized(mAllocationMap) { Allocation a = mAllocationMap.get(new Long(id)); Allocation a = mAllocationMap.get(new Long(id)); Loading rs/java/android/renderscript/RenderScript.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -1156,7 +1156,12 @@ public class RenderScript { } } if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { Allocation.sendBufferNotification(subID); if (mRS.nContextGetUserMessage(mRS.mContext, rbuf) != RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { throw new RSDriverException("Error processing message from RenderScript."); } long bufferID = ((long)rbuf[1] << 32L) + ((long)rbuf[0] & 0xffffffffL); Allocation.sendBufferNotification(bufferID); continue; continue; } } Loading Loading
rs/java/android/renderscript/Allocation.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1868,7 +1868,7 @@ public class Allocation extends BaseObj { } } } } static void sendBufferNotification(int id) { static void sendBufferNotification(long id) { synchronized(mAllocationMap) { synchronized(mAllocationMap) { Allocation a = mAllocationMap.get(new Long(id)); Allocation a = mAllocationMap.get(new Long(id)); Loading
rs/java/android/renderscript/RenderScript.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -1156,7 +1156,12 @@ public class RenderScript { } } if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { if (msg == RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { Allocation.sendBufferNotification(subID); if (mRS.nContextGetUserMessage(mRS.mContext, rbuf) != RS_MESSAGE_TO_CLIENT_NEW_BUFFER) { throw new RSDriverException("Error processing message from RenderScript."); } long bufferID = ((long)rbuf[1] << 32L) + ((long)rbuf[0] & 0xffffffffL); Allocation.sendBufferNotification(bufferID); continue; continue; } } Loading