summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
AgeCommit message (Collapse)Author
2016-01-30Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."Stephen Hines
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 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-15Add general reduction plumbing starting with Java Script::reduce().David Gross
Requires coordinated change in frameworks/rs. Bug: 23535724 Change-Id: I2fee6750cf542948d8fa87a98441002c4d84f36e
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-21RenderScript: implement a Script entry point for calling aMatt Wala
reduce-style kernel. Bug: 22631253 This adds a new (currently hidden) API to the Script class and the corresponding code for the RenderScript JNI layer. Change-Id: I40f19aaeb90411b859bd6b0bffc3f071fa327c21
2015-07-17am 0f5b7bc2: am 79a1bde2: Merge "Add a flag to the API to specify -O0 on the ↵Stephen Hines
bcc command line." * commit '0f5b7bc2fe2ae554ab1f044eb5b10aab5f4812cb': Add a flag to the API to specify -O0 on the bcc command line.
2015-07-16Add a flag to the API to specify -O0 on the bcc command line.verena beckham
Add a flag CREATE_FLAG_OPT_LEVEL_0 to set the optimization level to 0 when calling bcc. This will result in an object file that is easier to debug. Change-Id: I0384dca098fa0d9ae0f2e02e798da9de342c1122 Signed-off-by: verena beckham <verena@codeplay.com>
2015-05-21am 95e31ac8: am 3385b616: Merge "Added in flag to ask context to wait for ↵Stephen Hines
debugger attach." * commit '95e31ac85d4ba0b7dfb087f8bc0a10e4065ca8cd': Added in flag to ask context to wait for debugger attach.
2015-05-14[RenderScript] Add dummy getMinorID to maintain compatible with old RSMiao Wang
compat lib. bug: 21132592 Change-Id: I375f188dfbd33367a9589533aa51b182fda8bc21
2015-05-14Added in flag to ask context to wait for debugger attach.Stephen McGroarty
Adds in flag CREATE_FLAG_WAIT_FOR_ATTACH with value 0x0008 to the RenderScript API to be passed down to the C++ implementation to tell it to wait for a debugger to be attached before executing the kernel. Change-Id: Ibc4e903efbed1b1fb14cf378d1a8517d5c8d1f26 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
2015-05-12Fix API name based on API reviewJason Sams
rename getMinorID to getMinorVersion bug 21039492 Change-Id: I03908dba508e30a605818d81a085ad627fa202fb
2015-05-04Sanity checks in JNI code for closure creationYang Ni
b/20728113 In case the requested size for memory allocation overflows, or memory allocation fails. Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90 (cherry picked from commit 4e90b9b57cc96964a9d5c1845172a72cb51feafb)
2015-05-01Sanity checks in JNI code for closure creationYang Ni
b/20728113 In case the requested size for memory allocation overflows, or memory allocation fails. Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90
2015-04-15am 3d9c9093: am 91d2f27b: am 7f72f747: Merge "Add BNNM intrinsic."Tim Murray
* commit '3d9c9093d1d76d4aeb5f99b1746b65788c72736e': Add BNNM intrinsic.
2015-04-15Merge "Add BNNM intrinsic."Tim Murray
2015-04-14Add BNNM intrinsic.Tim Murray
Change-Id: I05fc9835786455e28d69f2b4ffe70c3292a01404
2015-04-14am 09339053: am 6ca1e45a: am 8704ae46: Merge "Add name to ↵Yang Ni
ScriptGroup2.Builder.create() method" * commit '0933905375790eb850334b53fd6d0981bd40e007': Add name to ScriptGroup2.Builder.create() method
2015-04-13Add name to ScriptGroup2.Builder.create() methodYang Ni
This name will be used to name the .so file generated for the script group with fused kernels. Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
2015-04-10am 72fcf9eb: am af61d43d: am 6d718c2f: Merge "Add support for setting the ↵Tim Murray
cache directory." * commit '72fcf9eb1079312afd7bdbee167c759109af4244': Add support for setting the cache directory.
2015-04-09Add support for setting the cache directory.Tim Murray
Change-Id: I2bf1874705b877a8a8262ab49b47fe8241e603d5
2015-04-07resolved conflicts for merge of 764f08ad to masterStephen Hines
Change-Id: I0a22225b2d26b6d806de2dcc70ffba29c96865b3
2015-04-07Move cache dir to its own class.Tim Murray
This prevents us from loading the RS static initializer all the time. Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f
2015-03-30unhide RS apisJason Sams
Change-Id: I30c3349c9222765ad7850890e0431bc6a6d3757a
2015-03-24am 2b30b73b: am 6f6f44b0: am b2b0c4c2: Merge "[RenderScript] Add ↵Miao Wang
create(Context, int) to be compatible with the thunker layer & minor tweaks." * commit '2b30b73b017f10bc2ce514981b577c2efaeab739': [RenderScript] Add create(Context, int) to be compatible with the thunker layer & minor tweaks.
2015-03-23[RenderScript] Add create(Context, int) to be compatible withMiao Wang
the thunker layer & minor tweaks. bug:19888167 bug:19888339 Change-Id: Ib264c4ca48c990b3476456838047f73d95f6752f
2015-03-19am d8e891f4: am f75e4ca3: Merge "Make it harder to leak contexts"Jason Sams
* commit 'd8e891f474096c310f60ca6d2f737cdc0251003e': Make it harder to leak contexts
2015-03-18Make it harder to leak contextsJason Sams
Change-Id: Ied60b6428bedb200d7b5b627e8196fbf2b4151e1
2015-03-13am bb8c910f: am d2e4a166: Merge "Remove dead path code"Jason Sams
* commit 'bb8c910fc12f304c97c94ee86a3a3da56afe8374': Remove dead path code
2015-03-11Remove dead path codeJason Sams
This API was never shipped and the implementation never finished. Change-Id: I2491db216d6a7a8ea30628d791773f89da5fb4d2
2015-03-08am 989e03f1: am c1e2bf95: am 4b5af9bc: Merge "[RenderScript] Update the java ↵Miao Wang
API about Allocation copyTo & From FieldPacker" * commit '989e03f144e8031f33af08945e845283dddcc8ad': [RenderScript] Update the java API about Allocation copyTo & From FieldPacker
2015-03-08am ec89c1ea: am a61832c8: am 288e6f67: Merge "[RenderScript] AutoPadding & ↵Miao Wang
Unpadding for Vec3 Elements during copyTo & copyFrom." * commit 'ec89c1ea731256cd0d71ee58733b2855e1e6e4fa': [RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom.
2015-03-05[RenderScript] Update the java API about Allocation copyTo & From FieldPackerMiao Wang
Change-Id: I4e1b911d4cdfec8a841bc5a8bc615c64c50e8fc8
2015-03-04[RenderScript] AutoPadding & Unpadding for Vec3 Elements duringMiao Wang
copyTo & copyFrom. Change-Id: I10b6fb235717e181ebb30b92e4dbe23e6183a29c
2015-03-03am 5830e7a9: am 411473de: am caa8a8fb: Merge "[Renderscript] JAVA API update ↵Miao Wang
for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom()." * commit '5830e7a9fb56db24a101d7b45c6db970e38ed6f6': [Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom().
2015-02-28Remove unused imports in frameworks/base.John Spurlock
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-25[Renderscript] JAVA API update for Allocation.CopyToMiao Wang
add the following functions to make it more symmetric to copyFrom(). - copy1DRangeToUnchecked, copy1DRangeTo - copy2DRangeToUnchecked, copy2DRangeTo - copy3DRangeToUnchecked, copy3DRangeTo - setFromFieldPacker, 2D and 3D variants - copyElementTo, (1D, 2D & 3D) Change-Id: I6b896123e1c00cead552aa5b31a701b15dd70f85
2015-02-19Implement finalizer for RS contexts.Jason Sams
Fixes memory leak when apps forget to call .destroy() on the context. Change-Id: Ida4685768e92cfe3875da38846d17b86cc386cd0
2015-02-17Add BLAS intrinsic.Tim Murray
Change-Id: I95ddc46cb3f6217d2ead1091fd47450389544324
2015-02-06Implement array typesJason Sams
Change-Id: I1b83f21ea2aeaa4b9f5934aadcb69d4a1c1fea20
2015-02-04Adds invocable functions to ScriptGroupYang Ni
This also includes InvokeID support Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
2015-01-29Pass in code cache directory when creating a script group.Yang Ni
Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
2015-01-22Merge "Fix default compute thread priority"Jason Sams
2015-01-21Fix default compute thread priorityJason Sams
bug 16651474 Compute inherited graphics default thread priority of Display. This was not intended. Change-Id: I0dd9a230ce8ceba64e971b024cbe518927cd2550