Stephen Hines
88990da58d
Don't set Allocation mSize when we have no Type.
...
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-09-09 17:56:07 -07:00
Jason Sams
6b11598048
Merge "Unhide USAGE_IO_INPUT functions" into klp-dev
2013-08-29 21:24:28 +00:00
Jason Sams
42ef238208
Unhide USAGE_IO_INPUT functions
...
Change-Id: I9c1a7e5d65adee133b99b9a94729ab0b3d5a097f
2013-08-29 13:30:59 -07:00
Tim Murray
2f2472c42b
Add garbage collection hooks
...
bug 10428172
Change-Id: I6365aa58bbc99aa134e1f261a5819e07a7d70fb0
2013-08-23 13:35:19 -07:00
Tim Murray
3f4579fbe4
am 379641a7: am ea45ab6f: Merge "Improve RS documentation." into jb-mr2-dev
...
* commit '379641a7ef09e1d7fab34d3027c5809fb2bc21ad':
Improve RS documentation.
2013-06-05 13:53:28 -07:00
Tim Murray
c11e25c4e6
Improve RS documentation.
...
bug 8570568
Change-Id: I465fcc8ec3e2cc892dc3cb0067aacf5224338102
2013-06-05 11:28:45 -07:00
Jason Sams
1b1c39d773
am d19068a7: am 413adc92: Merge "Fix free after use with createFromBitmapResource" into jb-mr2-dev
...
* commit 'd19068a7d28d129f5a1a1be478e972b40cea04eb':
Fix free after use with createFromBitmapResource
2013-06-01 09:51:46 -07:00
Jason Sams
3ece2f3268
Fix free after use with createFromBitmapResource
...
Bug 9227350
Change-Id: Iee7610a9bf3d9d1baf14b968aed2a7d0876d2af7
2013-05-31 14:01:04 -07:00
Tim Murray
6d7a53cbdd
Add support to Java for RS tracing.
...
Change-Id: I95c365345fea3a1e132a7eb2270d541be0745d02
2013-05-24 13:36:32 -07:00
Jason Sams
f64cca905c
Updating API based on feedback
...
bug 8656887
This hides the methods used to support Camera
Fixes the oversight in LaunchControl
Documents some missing functions
Change-Id: I5b19b65dd5ddf9917100192c180bb63d89c80679
2013-04-19 12:56:37 -07:00
Jason Sams
9bf189228f
Revert GC thread changes
...
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-14 02:56:03 +00:00
Tim Murray
d6b8a03533
Merge "Add support for synchronous get()." into jb-mr2-dev
2013-04-12 20:03:52 +00:00
Jason Sams
c876cc4994
Fix docs typo in YUV code
...
bug 8566866
Change-Id: I9da6d237b0a109b2c0799a41e531a0344cc19d40
2013-04-11 20:22:31 -07:00
Jason Sams
a2f289a40d
Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev
2013-04-12 02:20:11 +00:00
Jason Sams
739c8263a1
USAGE_IO_INPUT buffer notifications
...
Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9
2013-04-11 18:14:26 -07:00
Tim Murray
7c4caadb93
Add support for synchronous get().
...
bug 8599910
Change-Id: I0e7c52350cc1abb14a5ed59bb92e8e0346209d53
2013-04-11 16:25:29 -07:00
Tim Murray
3eba934a27
Merge "Clean up USAGE_SHARED and add syncing for USAGE_SHARED." into jb-mr2-dev
2013-04-11 04:50:32 +00:00
Jason Sams
60799fb74b
Fix docs with deprecated resize1D
...
Change-Id: Id1774e1e8be1c1600efaa535cf330e659addb703
2013-04-09 22:08:40 -07:00
Jason Sams
07c6fa123d
Merge "Implement RS GC worker thread." into jb-mr2-dev
2013-04-10 04:21:01 +00:00
Tim Murray
78e6494560
Clean up USAGE_SHARED and add syncing for USAGE_SHARED.
...
bug 8567006
Change-Id: Ie9c01eeccdd3fa0a81893314dfbce7c012d3f7d3
2013-04-09 17:47:57 -07:00
Tim Murray
f8c033db1e
Implement RS GC worker thread.
...
Bug 8579360
Change-Id: I98a5509b68e592bcbb4958f2ca72c236a22910b5
2013-04-09 16:01:23 -07:00
Jason Sams
b05d689653
Cleanup Allocation and add 3D copies.
...
bug 8567058
Change-Id: Ib05ff3de851bccfea1531ca6c1801153632a2a85
2013-04-09 15:59:24 -07:00
Tim Murray
abd5db9d37
Add support and better exceptions for Bitmaps with a null config.
...
Bug: 8263427
Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
2013-02-28 14:33:01 -08:00
Jason Sams
c089c2fc00
Fix build break.
...
Change-Id: I362c96787482bc8daee7dd4a01817ab7ed79b730
2013-02-22 13:57:36 -08:00
Jason Sams
72226e0543
Implement USAGE_IO_INPUT
...
Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
2013-02-22 12:45:54 -08:00
Stephen Hines
5f528becb0
Check Element in all API levels for copy2DRangeFrom().
...
Change-Id: I561317671a16888fc9f35908ab1ae1489a14fc6c
2013-02-08 21:03:51 -08:00
Stephen Hines
a9a7b37405
Fix copyFrom() to use proper dimensions for copying.
...
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-08 20:56:00 -08:00
Jason Sams
3c6721899e
Merge "Implement rs.sendMessage()"
2013-02-07 02:17:53 +00:00
Scott Main
e68c1ce1d4
am 11f1c5b8: am b3a57191: am 0a00de11: am 805d2e2d: am 00f49084: Merge "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-06 12:31:26 -08:00
Jason Sams
455d644266
Implement rs.sendMessage()
...
Change-Id: Ib4f4bb7bb4f697d0b5405ad55721394ed2456c65
2013-02-05 19:20:18 -08:00
Scott Main
b47fa1699a
docs: fix renderscript links that currently require redirect
...
Change-Id: Ie12ff2c4be5ca22ac43dfe3a16868c7bef8e4ae8
2013-02-05 14:23:13 -08:00
Stephen Hines
d34dc85f8f
We can only optimize bitmaps that have USAGE_SHARED.
...
Change-Id: I1149a9e25738da5ee348e3c18e7fdd7c1948e89e
2012-12-19 19:34:17 -08:00
Tim Murray
00bb454bd0
Add USAGE_SHARED for Allocations.
...
Change-Id: I61efafffaa649df68762d9ae29e029cd1e1bc6bc
2012-12-19 13:01:03 -08:00
Tim Murray
a314551d69
Add support for Bitmap-backed Allocations in Java.
...
Change-Id: Iab38a275aa6cdac91c76fa0d134fbc1e8f387913
Bug: 7256604
2012-12-04 18:27:07 -08:00
Tim Murray
f671fb0b35
Add copyFrom(Allocation a).
...
Change-Id: Ibc334326083b5471584dcf1c068e4e810aede20f
2012-10-05 16:45:45 -07:00
Tim Murray
bc254b9597
add resize2D to Java API
...
Change-Id: I91c0d2292486d63b93f8b07a9ec0137fe020ac21
2012-10-05 16:15:16 -07:00
Stephen Hines
9c9ad3f8c2
Revert "Deprecate"
...
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908.
Conflicts:
api/current.txt
graphics/java/android/renderscript/Element.java
graphics/java/android/renderscript/Script.java
Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
2012-05-07 15:34:29 -07:00
Alex Sakhartchouk
a0c2eb27b4
Deprecate
...
Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309
2012-04-19 16:30:58 -07:00
Alex Sakhartchouk
918e840628
Unhiding J API's for Renderscript.
...
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
2012-04-11 14:04:23 -07:00
Jason Sams
e07694b24f
Validate context when using RS objects.
...
BUG=6035422
Change-Id: I8586be0085b36767289e1f634111c0ff076cec3c
2012-04-03 15:36:36 -07:00
Jason Sams
c5f519c5ec
Rename ioReceive and ioSend
...
First checkin of Allocation IO test
Change-Id: I26379e442796caab95a089dbb42b02192f4cc563
2012-03-29 17:58:15 -07:00
Jason Sams
fb9aa9f3ef
Convert from SurfaceTexture to Surface
...
Change-Id: I2ad4307294d4144999ca0c12ac19849b188243fb
2012-03-28 15:30:07 -07:00
Jason Sams
36c0f64658
Add getSizeBytes and cleanup docs.
...
Change-Id: I854a41f50378590b58bfbb205906ed4bee440411
2012-03-23 15:48:37 -07:00
Jason Sams
03d2d00dc8
Cleanup Allocation docs and getter funcs.
...
Change-Id: Ic6fb92e0675d64016f0d471c1d9e5328101e4b36
2012-03-23 13:51:56 -07:00
Jason Sams
fe1d5ffd1b
Implement USAGE_IO_INPUT
...
Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
2012-03-23 11:47:26 -07:00
Jason Sams
f70b0fc880
start new headers
...
Change-Id: I950e5db76ecd3afbc7ea2b3ec792e4cb242f57bf
cpp
2012-02-22 15:22:41 -08:00
Jason Sams
163766cbe7
Beging IO stream out from allocation to surface texture.
...
Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
2012-02-15 12:04:24 -08:00
Stephen Hines
0599d6ede3
Merge "Fix typos/spacing with new APIs."
2012-02-14 13:38:43 -08:00
Stephen Hines
9069ee88cb
Fix typos/spacing with new APIs.
...
Change-Id: I26b772e8e29b12381042fb50c6dfa9df012b3f63
2012-02-13 18:25:54 -08:00
Jason Sams
532efd3ce2
Start implementing SurfaceTexture streaming into RS allocations.
...
Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
Conflicts:
libs/rs/rsAllocation.h
2012-02-10 13:24:18 -08:00