summaryrefslogtreecommitdiff
path: root/rs/java/android
AgeCommit message (Collapse)Author
2016-04-12Destroy Type created by Allocation.createSized()Yang Ni
Bug: 27972184 Change-Id: I4f80c74079087eab20b75a701c56cde141322462 (cherry picked from commit 3444dbe025ad78cae9fd77a4d2203a1a806ae1af)
2016-04-12Merge "Destroy Type created by Allocation.createSized()"Yang Ni
2016-04-12Merge "Destroy Closures in ScriptGroup" am: 01db883Yang Ni
am: 122c39a * commit '122c39ab82a3e027d0e46e26bb09ac4e5e480842': Destroy Closures in ScriptGroup Change-Id: I9b03e2ae8ec80250686afc9ac9f39d294e5f9b5d
2016-04-12Destroy Closures in ScriptGroupYang Ni
Bug: 27973681 Implemented correct destruction in ScriptGroup.destroy() and Clsoure.destroy(), which properly destroys child BaseObj's. Change-Id: I946f62c2979d6a338b8883514cacad472a213c5c (cherry picked from commit 44e2f45f0cab4a429e59f07c1e5bf0eef08c7819)
2016-04-12Merge "Destroy Closures in ScriptGroup"Yang Ni
2016-04-11Destroy Type created by Allocation.createSized()Yang Ni
Bug: 27972184 Change-Id: I4f80c74079087eab20b75a701c56cde141322462
2016-04-11Merge "Fix typos for the word "Unsupported"." am: 9e57114Stephen Hines
am: 1dd551b * commit '1dd551b019bbbb3a6a61b1a462b63e57e31a5b98': Fix typos for the word "Unsupported". Change-Id: I80a9d5f8504e1e2a14595e26fce7079ee490f06e
2016-04-11Fix typos for the word "Unsupported".Stephen Hines
Bug: https://code.google.com/p/android/issues/detail?id=206490 Change-Id: Ie1b2c2b0960d8dd8c12ed06d84a16913cd057221
2016-04-07Destroy Closures in ScriptGroupYang Ni
Bug: 27973681 Implemented correct destruction in ScriptGroup.destroy() and Clsoure.destroy(), which properly destroys child BaseObj's. Change-Id: I946f62c2979d6a338b8883514cacad472a213c5c
2016-04-04Avoid destroying Device separatelyYang Ni
Bug: 27983025 Device should be destroyed inside the destructor of the associated Context. Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5 (cherry picked from commit 4a70df58a32591429ec04902deac2b2210fb96c3)
2016-04-04Avoid destroying Device separatelyYang Ni
Bug: 27983025 Device should be destroyed inside the destructor of the associated Context. Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
2016-04-01Merge "Added CloseGuard for BaseObj" into nyc-devYang Ni
2016-03-31Added CloseGuard for BaseObjYang Ni
Bug: 27719830 To turn on warnings, apps have to add to their Activity.onCreate() method the following code. StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectLeakedClosableObjects() .penaltyLog() .build()); For Slang generated ScriptC derived classes, we assume their constructors won't throw exceptions after calling the ScriptC constructor. In addition, ScriptIntrinsic derived classes do not seem to throw exceptions in their constructors either. Therefore, we can leave the guard.open() call in the Script constructor. This may be only an approximation, but allows us to add CloseGuard for script objects without making changes to slang. Change-Id: I77ed45239a60b85af5c811dee6c124fb53da9060 (cherry picked from commit eb4dd08ec132f83745b8b28fa7da58eb4478b5b9)
2016-03-31Merge "Added CloseGuard for BaseObj"Yang Ni
2016-03-31Added CloseGuard for BaseObjYang Ni
Bug: 27719830 To turn on warnings, apps have to add to their Activity.onCreate() method the following code. StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectLeakedClosableObjects() .penaltyLog() .build()); For Slang generated ScriptC derived classes, we assume their constructors won't throw exceptions after calling the ScriptC constructor. In addition, ScriptIntrinsic derived classes do not seem to throw exceptions in their constructors either. Therefore, we can leave the guard.open() call in the Script constructor. This may be only an approximation, but allows us to add CloseGuard for script objects without making changes to slang. Change-Id: I77ed45239a60b85af5c811dee6c124fb53da9060
2016-03-29[RenderScript] Update documentation for Allocation.setAutoPadding().Miao Wang
Bug: 26862970 Change-Id: Iaa88ac0266e5d2cac2837f1d13353aacc6177274 (cherry picked from commit 9ee7607615563c6b480968470e69cb58d0996cb8)
2016-03-29[RenderScript] Fix IntrinsicConvolve documentation.Miao Wang
Bug: 25117120 - Better format. - Typo fixes. Change-Id: Ic6f8d1dacecdaf9993dd8298de7a801f5fd2a937 (cherry picked from commit 3d23dce43330b9c8f3fba34ef9515dca7912768a)
2016-03-30Merge "[RenderScript] Update documentation for Allocation.setAutoPadding()." ↵Miao Wang
into nyc-dev
2016-03-29[RenderScript] Update the documentation of Script.LaunchOptionsMiao Wang
Bug: 26916665 - Add description of the endArg. - Update the example. - Update the incorrect description. Change-Id: Idd07db5d790e2d6462fff9cb580115ec45cfd4f0 (cherry picked from commit 53fdcfbe63c1d4b2f1cbee6e72a6dd13f41dc1bc)
2016-03-29[RenderScript] Update documentation for Allocation.setAutoPadding().Miao Wang
Bug: 26862970 Change-Id: Iaa88ac0266e5d2cac2837f1d13353aacc6177274
2016-03-29Merge "[RenderScript] Fix IntrinsicConvolve documentation." into nyc-devMiao Wang
2016-03-29Merge "[RenderScript] Update the documentation of Script.LaunchOptions" into ↵Miao Wang
nyc-dev
2016-03-29[RenderScript] Fix IntrinsicConvolve documentation.Miao Wang
Bug: 25117120 - Better format. - Typo fixes. Change-Id: Ic6f8d1dacecdaf9993dd8298de7a801f5fd2a937
2016-03-29[RenderScript] Update the documentation of Script.LaunchOptionsMiao Wang
Bug: 26916665 - Add description of the endArg. - Update the example. - Update the incorrect description. Change-Id: Idd07db5d790e2d6462fff9cb580115ec45cfd4f0
2016-03-29Merge "[RenderScript] Fail with Exception from validateObjectIsPrimitiveArray"Pirama Arumuga Nainar
2016-03-28[RenderScript] Fail with Exception from validateObjectIsPrimitiveArrayPirama Arumuga Nainar
Bug: http://b/25982676 Instead of returning null from validateObjectIsPrimitiveArray, fail with an exception. The callers of this function do not check for null. Change-Id: Idd2b50a7b137e8d2db7a334bb9a48c1b19ee2403
2016-03-28[RenderScript] Fail with Exception from validateObjectIsPrimitiveArrayPirama Arumuga Nainar
Bug: http://b/25982676 Instead of returning null from validateObjectIsPrimitiveArray, fail with an exception. The callers of this function do not check for null. Change-Id: Idd2b50a7b137e8d2db7a334bb9a48c1b19ee2403
2016-03-21Correctly init code cache path for RSYang Ni
Bug: 27439261 Script Group needs to know the code cache path before it can call bcc to merge kernels. However, before this change, the code cache path has been initialized by the ScriptC class. In the case where a script group (or even the entire app) does not contain any regular script but only intrinsics, the code cache would remain uninitialized. Fixed this by initializing the code cache path in the RenderScript class the first time when the accessor method is called. Change-Id: I87f9e62e0f3b479f94e43daa3e9695a5b38710db (cherry picked from commit 689f63770048589e1001ce99faf1d2eaf9780a80)
2016-03-18Correctly init code cache path for RSYang Ni
Bug: 27439261 Script Group needs to know the code cache path before it can call bcc to merge kernels. However, before this change, the code cache path has been initialized by the ScriptC class. In the case where a script group (or even the entire app) does not contain any regular script but only intrinsics, the code cache would remain uninitialized. Fixed this by initializing the code cache path in the RenderScript class the first time when the accessor method is called. Change-Id: I87f9e62e0f3b479f94e43daa3e9695a5b38710db
2016-03-03[RenderScript] Allow copyTo(short[]) etc for Float16 AllocationsPirama Arumuga Nainar
http://b/27251511 Allow copyTo(short[]), copyFrom(short[]), and their 1D range and 2D range variants to copy data between short[] arrays and Float16 Allocations. Change-Id: I370584685c3b773c165bd718974ca736ed548339 (cherry picked from commit f51bb356deeb8a22414fb44cede4b8618c4b57ba)
2016-03-01[RenderScript] Allow copyTo(short[]) etc for Float16 AllocationsPirama Arumuga Nainar
http://b/27251511 Allow copyTo(short[]), copyFrom(short[]), and their 1D range and 2D range variants to copy data between short[] arrays and Float16 Allocations. Change-Id: I370584685c3b773c165bd718974ca736ed548339
2016-01-30Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8Stephen Hines
am: c033f493f2 * commit 'c033f493f23574dc69bf8ecd0f04af8910b4a47e': Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."Stephen Hines
2016-01-27[RenderScript] Unhide new Allocation APIsMiao Wang
Bug: 23535524 - ByteBuffer getByteBuffer() - long getStride() - Allocation[] createAllocations(rs, type, usage, num) - long getTimeStamp() Change-Id: I0cad88c81f9f48c7aca59af159c49f506b234aee
2016-01-27Merge "[RenderScript] Implement APIs for better multi-frame process ↵Miao Wang
support." am: 6ebdbfa549 am: d90b4a3266 * commit 'd90b4a3266ab2af3cbc6f131a0ed320f7a795a09': [RenderScript] Implement APIs for better multi-frame process support.
2016-01-26[RenderScript] Implement APIs for better multi-frame process support.Miao Wang
Bug: 23535524 Two APIs added for multiframe processing: - createAllocations(...): To create an array of Allocations sharing the same Type and Usage. For USAGE_IO_INPUT Allocations, they also share the same BufferQueue. - getTimeStamp(): API to retrieve the time stamp associated with the most recent buffer. Change-Id: I6b7b35d7dca5e87ee2f3db2ee17cb9cf824bcfe1
2016-01-26Merge "[RenderScript] Add API to map Allocation mallocptr to Java ↵Miao Wang
ByteBuffer" am: ed50f333fb am: 5f210ae042 * commit '5f210ae04239f4a374763ea9ffe7176f5455017a': [RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer
2016-01-26Merge "[RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer"Miao Wang
2016-01-25[RenderScript] Add API to map Allocation mallocptr to Java ByteBufferMiao Wang
Bug: 25926361 Bug: 23535524 - Construct the ByteBuffer using the AllocationGetPointer. - Add an API to query the stride of the allocation. - Both ByteBuffer and Stride will be cached for normal Allocations. if using USAGE_IO, since after each ioReceive, the mallocPtr will change, getByteBuffer will always create a new one using the most up-to-date mallocPtr. Change-Id: I5e84b6690e83bb062c383043275524d0e51e46eb
2016-01-25Unhide Script::reduce() interface for general reduction.David Gross
Bug: 23535724 Change-Id: I7a43622954de9f4168f7e4376f39d6ec54191c03
2016-01-15Add general reduction plumbing starting with Java Script::reduce().David Gross
Requires coordinated change in frameworks/rs. Bug: 23535724 Change-Id: I2fee6750cf542948d8fa87a98441002c4d84f36e
2015-11-13Various fixes in setting globals in a script groupYang Ni
Bug: 25602504 1) Passing floating point values into a script group was broken, since they were casted to long values. Fixed that in the frameworks implementation by taking the raw bits instead. 2) Passing 64-bit values into a script group was broken on 32-bit platforms, since they were casted to pointer-sized integers (uintptr_t) in the JNI code. Fixed that by casting to int64_t instead. 3) Setting global variables of Allocation type in a script group was broken. The special size value -1 was used to indicate the value is an Allocation. However, size was casted to size_t in the JNI code. Fixed that by using signed integers. Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
2015-10-08Fix punctuation and typos in AllocationAdapter's documentation.Pirama Arumuga Nainar
Change-Id: I5574ff201b857a29f30ebe8413dbe4128dcff3ae
2015-10-05am 46b51097: Merge "Safely handle interrupts during Thread.join()"Pirama Arumuga Nainar
* commit '46b51097b92900866ac5b25762f622d3ceb1be5d': Safely handle interrupts during Thread.join()
2015-10-05Safely handle interrupts during Thread.join()Pirama Arumuga Nainar
Interrupt current thread if InterruptedException is received during Thread.join(). Also, log the interruption. Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
2015-10-02am ca3e5aea: Merge "Retry if interrupted before mMessageThread has joined"Pirama Arumuga Nainar
* commit 'ca3e5aeaa65ae1d77ce92f082ab789933eb18237': Retry if interrupted before mMessageThread has joined
2015-10-02Retry if interrupted before mMessageThread has joinedPirama Arumuga Nainar
Bug: 24342101 If interrupted during mMessageThread.join(), retry the join instead of assuming the thread has joined and continuing. Continuing to destroy the context will cause a segfault when the message thread attempts to use the destroyed context. Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
2015-09-02Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.Stephen McGroarty
The flag was previously used to set the optimization level of the bcc compiler to -O0. However, this functionality is now accomplished through deriving the optimization level from the input bitcode. That patch can be found here: https://android-review.googlesource.com/169330 Change-Id: I9c57d941bb35c6f737a31fcd74f31d9de25a16a8 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
2015-07-23am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry ↵Stephen Hines
point for calling a reduce-style kernel." * commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7': RenderScript: implement a Script entry point for calling a reduce-style kernel.
2015-07-23Merge "RenderScript: implement a Script entry point for calling a ↵Stephen Hines
reduce-style kernel."