summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Allocation.java
AgeCommit message (Collapse)Author
2013-12-17Move RenderScript from graphics/ to new fw/base subdirectory rs.Tim Murray
Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
2013-11-26Fix sdk build.Ying Wang
Change-Id: I11471213826b212b99c0ddba89a7f4cef110fcc4
2013-11-26Generic object based data copy.Jason Sams
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
2013-11-20Merge "Convert Java/JNI to 64-bit, part 2."Tim Murray
2013-11-20Convert Java/JNI to 64-bit, part 2.Tim Murray
This changes BaseObj to support 64-bit IDs. There are a few caveats: 1. Since it is deprecated, RSG will not support 64-bit. 2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL. bug 11332320 Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
2013-11-20Remove unused imports from frameworks/base.John Spurlock
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-11Add long/double read support.Jason Sams
Change-Id: I1957f7ac18262a3004a4adcb7c31055212e483c2
2013-11-06Use Object + type in place of specific arrayJason Sams
Changed to avoid the explosion of entry points in the JNI layer. Change-Id: I7d6cc565c8853b06560eb891fdd5e8acf05c9779
2013-10-09Remove old hidden API.Jason Sams
This was never shipped and long since replaced by ioReceive(). Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b
2013-09-24Remove hidden API setSurfaceTexture.Jason Sams
Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae
2013-09-09Don't set Allocation mSize when we have no Type.Stephen Hines
Bug: 10667740 A3D creates Allocations before knowing the underlying Type (and thus size). Moving the mSize calculation to be conditional for concrete Allocations eliminates the bug. In the future, we could let A3D dynamically update the Allocation size if it is necessary to improve heap behavior. Change-Id: I520246806b6ead0387a1a41372dade1a6e7c2271
2013-08-29Merge "Unhide USAGE_IO_INPUT functions" into klp-devJason Sams
2013-08-29Unhide USAGE_IO_INPUT functionsJason Sams
Change-Id: I9c1a7e5d65adee133b99b9a94729ab0b3d5a097f
2013-08-23Add garbage collection hooksTim Murray
bug 10428172 Change-Id: I6365aa58bbc99aa134e1f261a5819e07a7d70fb0
2013-06-05am 379641a7: am ea45ab6f: Merge "Improve RS documentation." into jb-mr2-devTim Murray
* commit '379641a7ef09e1d7fab34d3027c5809fb2bc21ad': Improve RS documentation.
2013-06-05Improve RS documentation.Tim Murray
bug 8570568 Change-Id: I465fcc8ec3e2cc892dc3cb0067aacf5224338102
2013-06-01am d19068a7: am 413adc92: Merge "Fix free after use with ↵Jason Sams
createFromBitmapResource" into jb-mr2-dev * commit 'd19068a7d28d129f5a1a1be478e972b40cea04eb': Fix free after use with createFromBitmapResource
2013-05-31Fix free after use with createFromBitmapResourceJason Sams
Bug 9227350 Change-Id: Iee7610a9bf3d9d1baf14b968aed2a7d0876d2af7
2013-05-24Add support to Java for RS tracing.Tim Murray
Change-Id: I95c365345fea3a1e132a7eb2270d541be0745d02
2013-04-19Updating API based on feedbackJason Sams
bug 8656887 This hides the methods used to support Camera Fixes the oversight in LaunchControl Documents some missing functions Change-Id: I5b19b65dd5ddf9917100192c180bb63d89c80679
2013-04-14Revert GC thread changesJason Sams
This is not quite a straight revery, some manual edits were necessary. The original CL didn't undergo sufficient design review or testing. Revert until the regressions can be sorted out. Bug 8585185 This reverts commit 6dacf8355a0692b52c49f603f43317772cb36175 This reverts commit f8c033db1edf36a0ab09568c3142054f0be2d1a1 Change-Id: Ie7215bdf881332e822603547e92f810f595077fc
2013-04-12Merge "Add support for synchronous get()." into jb-mr2-devTim Murray
2013-04-11Fix docs typo in YUV codeJason Sams
bug 8566866 Change-Id: I9da6d237b0a109b2c0799a41e531a0344cc19d40
2013-04-12Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-devJason Sams
2013-04-11USAGE_IO_INPUT buffer notificationsJason Sams
Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9
2013-04-11Add support for synchronous get().Tim Murray
bug 8599910 Change-Id: I0e7c52350cc1abb14a5ed59bb92e8e0346209d53
2013-04-11Merge "Clean up USAGE_SHARED and add syncing for USAGE_SHARED." into jb-mr2-devTim Murray
2013-04-09Fix docs with deprecated resize1DJason Sams
Change-Id: Id1774e1e8be1c1600efaa535cf330e659addb703
2013-04-10Merge "Implement RS GC worker thread." into jb-mr2-devJason Sams
2013-04-09Clean up USAGE_SHARED and add syncing for USAGE_SHARED.Tim Murray
bug 8567006 Change-Id: Ie9c01eeccdd3fa0a81893314dfbce7c012d3f7d3
2013-04-09Implement RS GC worker thread.Tim Murray
Bug 8579360 Change-Id: I98a5509b68e592bcbb4958f2ca72c236a22910b5
2013-04-09Cleanup Allocation and add 3D copies.Jason Sams
bug 8567058 Change-Id: Ib05ff3de851bccfea1531ca6c1801153632a2a85
2013-02-28Add support and better exceptions for Bitmaps with a null config.Tim Murray
Bug: 8263427 Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
2013-02-22Fix build break.Jason Sams
Change-Id: I362c96787482bc8daee7dd4a01817ab7ed79b730
2013-02-22Implement USAGE_IO_INPUTJason Sams
Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
2013-02-08Check Element in all API levels for copy2DRangeFrom().Stephen Hines
Change-Id: I561317671a16888fc9f35908ab1ae1489a14fc6c
2013-02-08Fix copyFrom() to use proper dimensions for copying.Stephen Hines
This change actually fixes several bugs related to stride: * copyFrom() needs to call the 2D or 1D version, depending on the dimensions of the corresponding Allocation. * Add an internal-only copy2DRangeFromUnchecked(), since we don't really want to expose it as another public API (only via copyFromUnchecked()). * Call the proper 1D/2D version in copyFromUnchecked() based on the Allocation dimensions. * Add Element checks to the "checked" copy2DRangeFrom() routines. Change-Id: I690706d36884ee749bf90937c715855f6c07368c
2013-02-07Merge "Implement rs.sendMessage()"Jason Sams
2013-02-06am 11f1c5b8: am b3a57191: am 0a00de11: am 805d2e2d: am 00f49084: Merge ↵Scott Main
"docs: fix renderscript links that currently require redirect" into jb-mr1-dev # Via Android Git Automerger (4) and others * commit '11f1c5b89a98cb6794f2b1f158b8c22e38af975f': docs: fix renderscript links that currently require redirect
2013-02-05Implement rs.sendMessage()Jason Sams
Change-Id: Ib4f4bb7bb4f697d0b5405ad55721394ed2456c65
2013-02-05docs: fix renderscript links that currently require redirectScott Main
Change-Id: Ie12ff2c4be5ca22ac43dfe3a16868c7bef8e4ae8
2012-12-19We can only optimize bitmaps that have USAGE_SHARED.Stephen Hines
Change-Id: I1149a9e25738da5ee348e3c18e7fdd7c1948e89e
2012-12-19Add USAGE_SHARED for Allocations.Tim Murray
Change-Id: I61efafffaa649df68762d9ae29e029cd1e1bc6bc
2012-12-04Add support for Bitmap-backed Allocations in Java.Tim Murray
Change-Id: Iab38a275aa6cdac91c76fa0d134fbc1e8f387913 Bug: 7256604
2012-10-05Add copyFrom(Allocation a).Tim Murray
Change-Id: Ibc334326083b5471584dcf1c068e4e810aede20f
2012-10-05add resize2D to Java APITim Murray
Change-Id: I91c0d2292486d63b93f8b07a9ec0137fe020ac21
2012-05-07Revert "Deprecate"Stephen Hines
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908. Conflicts: api/current.txt graphics/java/android/renderscript/Element.java graphics/java/android/renderscript/Script.java Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
2012-04-19DeprecateAlex Sakhartchouk
Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309
2012-04-11Unhiding J API's for Renderscript.Alex Sakhartchouk
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
2012-04-03Validate context when using RS objects.Jason Sams
BUG=6035422 Change-Id: I8586be0085b36767289e1f634111c0ff076cec3c