summaryrefslogtreecommitdiffstats
path: root/rs/java/android/renderscript/Allocation.java
Commit message (Collapse)AuthorAgeFilesLines
* Ensure RenderScript tracing is always balanced via try/finallyChris Craik2015-06-021-278/+348
| | | | | | bug:21560057 Change-Id: I6709b81636822135848c10adca8ba425f3c2212e
* Fix RenderScript copy tracing sectionsChris Craik2015-06-011-12/+16
| | | | | | bug:21560057 Change-Id: I3b44d04bd908d9549ef7ada5f48f5d94e239d186
* [RenderScript] hide Allocation.copyToFieldPacker()Miao Wang2015-05-111-0/+2
| | | | | | bug: 21027883 Change-Id: I122392bc5206ff19ea52712576d7f363e5915231
* am 13391109: am 2b300a99: am 782b4339: Merge "[RenderScript] typo fix in ↵Miao Wang2015-04-161-1/+1
|\ | | | | | | | | | | | | Allocation.java" * commit '133911095ce0d9ef01766aa7b67a0a31b852e242': [RenderScript] typo fix in Allocation.java
| * [RenderScript] typo fix in Allocation.javaMiao Wang2015-04-151-1/+1
| | | | | | | | Change-Id: Id0eae76387d18c5bfed6cdbb52781b0dc3e4ae90
* | am 1327fa9e: am 511eb660: am 6aed9ec1: Merge "[RenderScript] update ↵Miao Wang2015-04-031-4/+11
|\ \ | |/ | | | | | | | | | | exception reporting for copyTo() after autoPadding added." * commit '1327fa9eb155eb57fe24a8aa90a18f57d706e86b': [RenderScript] update exception reporting for copyTo() after autoPadding added.
| * [RenderScript] update exception reporting for copyTo() afterMiao Wang2015-04-031-4/+11
| | | | | | | | | | | | | | | | | | autoPadding added. - This CL fixes recent CTS failures about copyPadded after lmp-mr1-dev changes pushed to aosp. Change-Id: Ica1f4fd934cd83ca4357ea7e7c82dcc7f844b689
* | [RenderScript] Remove @hide for setAutoPadding(boolean).Miao Wang2015-03-261-1/+1
| | | | | | | | Change-Id: I9e018436866989090be3896f894078ca0422189b
* | [RenderScript] Remove @hide for the new APIs for Allocation.CopyToMiao Wang2015-03-261-26/+12
|/ | | | Change-Id: I9ef476ae3e659d98d21c9246aa8e4969e00c14f1
* Avoid duplicate surface creation.Jason Sams2015-03-171-1/+8
| | | | Change-Id: I43104c8b48dd26681735940e6b2e1ba902af2020
* am 4b5af9bc: Merge "[RenderScript] Update the java API about Allocation ↵Miao Wang2015-03-061-52/+10
|\ | | | | | | | | | | | | copyTo & From FieldPacker" * commit '4b5af9bce10dbb8b6d5ff27a5f0c49f3498a6245': [RenderScript] Update the java API about Allocation copyTo & From FieldPacker
| * [RenderScript] Update the java API about Allocation copyTo & From FieldPackerMiao Wang2015-03-051-52/+10
| | | | | | | | Change-Id: I4e1b911d4cdfec8a841bc5a8bc615c64c50e8fc8
* | am 288e6f67: Merge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements ↵Miao Wang2015-03-061-17/+113
|\ \ | |/ | | | | | | | | | | during copyTo & copyFrom." * commit '288e6f67181ce74ec4b97b61def1b9510b1221d0': [RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom.
| * [RenderScript] AutoPadding & Unpadding for Vec3 Elements duringMiao Wang2015-03-041-17/+113
| | | | | | | | | | | | copyTo & copyFrom. Change-Id: I10b6fb235717e181ebb30b92e4dbe23e6183a29c
* | am caa8a8fb: Merge "[Renderscript] JAVA API update for Allocation.CopyTo add ↵Miao Wang2015-03-031-3/+382
|\ \ | |/ | | | | | | | | | | the following functions to make it more symmetric to copyFrom()." * commit 'caa8a8fb9849f1d44ffab3117950ac1e7b02cd4d': [Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom().
| * [Renderscript] JAVA API update for Allocation.CopyToMiao Wang2015-02-251-3/+382
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 2a3cdf57: Merge "Implement array types"Jason Sams2015-02-101-4/+2
|\ \ | |/ | | | | | | | | | | automerge: 6e0ad25 * commit '6e0ad25ca8def88a48c9cc6436b12da7ff4600c2': Implement array types
| * Implement array typesJason Sams2015-02-061-4/+2
| | | | | | | | Change-Id: I1b83f21ea2aeaa4b9f5934aadcb69d4a1c1fea20
* | Merge "make Allocation.destroy() include setSurface(null) for ↵Miao Wang2015-02-051-0/+11
|\ \ | |/ | | | | | | | | | | | | | | USAGE_IO_OUTPUT (Native RS)" automerge: 9a55cbc automerge: 58fd96c * commit '58fd96c607de7f7f821a0b15fd37bc28323fcfde': make Allocation.destroy() include setSurface(null) for USAGE_IO_OUTPUT (Native RS)
| * make Allocation.destroy() include setSurface(null) for USAGE_IO_OUTPUTMiao Wang2015-02-031-0/+11
| | | | | | | | | | | | (Native RS) Change-Id: I23041da03c2c928ceec76037804abb5dc7e6eb64
* | [Renderscript] Add check for Allocation.copyTo(Array) andMiao Wang2015-01-211-0/+4
|/ | | | | | | Fix the input allocation type check for Histogram Intrinsic. Bug: 19035242 Change-Id: I0ef2672bf816854db90fc92dc9ef51d1d231c246
* Fix IO_INPUT with 64-bit.Tim Murray2014-08-181-1/+1
| | | | | | | bug 16846318 bug 17006933 Change-Id: Ic13ef26875d8a6fab1ffb542d62038b768a536ff
* Allocation.resize() should throw an exception in API 21+.Tim Murray2014-08-141-1/+5
| | | | | | bug 16846318 Change-Id: I852331ec226e4cad8be79aa27c4b51183e97cc1d
* Update copyFrom(BaseObj[]) for large objects.Tim Murray2014-07-091-5/+12
| | | | Change-Id: I99cadbd1ad925cad0dd357c9abbd1a49c07785c9
* am c5b11fcc: am ff83ed2d: am b02dadd4: Merge "Create FieldPacker.getPos() to ↵Stephen Hines2014-06-191-6/+8
|\ | | | | | | | | | | | | get the actual amount of data used for FP." * commit 'c5b11fcc1f4fc4fba988218d0a99a19690398a56': Create FieldPacker.getPos() to get the actual amount of data used for FP.
| * Create FieldPacker.getPos() to get the actual amount of data used for FP.Stephen Hines2014-06-181-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need larger buffers to handle 64-bit RS object types, but 32-bit code will never fill all of the getData().length bytes. This allows us to retain our verification code. We have to modify an existing use of FieldPacker that was doing partial updates of the underlying buffer. This was really relying on the old data to be implicitly selected and written back, but that is not guaranteed by the original API. This also required a fix to the FieldPacker.reset() API, which was not allowing the FieldPacker to ever point to the final entry in its buffer. Change-Id: Idcd52790ac2b0ab1eff3f043e7eec2832953f04b
| * Generic object based data copy.Jason Sams2014-02-101-234/+247
| | | | | | | | | | | | | | | | | | | | This change consolidates the copy paths to Object based. The runtime now uses reflection to identify the type of array present. This adds support for long/double and reduces the amount of code present. We could also support arrays of vectors or objects in the future with this mechanism. Change-Id: I2297c1c01fbe6a64c375d6368f25d7db781ea788
| * Fix getBytesSize for YUV allocations.Tim Murray2014-01-311-0/+3
| | | | | | | | | | | | bug 12134914 Change-Id: I128e75b756a5bd129077177e254f1db6c94182f1
| * Move RenderScript from graphics/ to new fw/base subdirectory rs.Tim Murray2014-01-311-0/+1863
| | | | Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
* Fix getBytesSize for YUV allocations.Tim Murray2014-01-071-0/+3
| | | | | | bug 12134914 Change-Id: I128e75b756a5bd129077177e254f1db6c94182f1
* Move RenderScript from graphics/ to new fw/base subdirectory rs.Tim Murray2013-12-171-0/+1865
Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d