Jason Sams
85deb78165
Fix "return 0" behavior in rs
...
0 was not properly blocking for the next message.
Change-Id: I0d9f0a8f799ba457197920c6a699f80f496eaa8e
2011-08-17 17:15:23 -07:00
Jason Sams
c1b4c1ff9b
Add structure to pack params for forEach.
...
This allows the driver to not pass all the sub-params.
Change-Id: I9728a7bb39893f49193a55155994ede0400cb7a6
2011-08-17 14:13:50 -07:00
Alex Sakhartchouk
4270295ae8
Merge "Fixing asynchronous performance issues."
2011-08-17 13:29:24 -07:00
Romain Guy
2ce81fcd7d
Merge "Add an API to set the transform on a TextureView's surface texture. Bug #5156689 "
2011-08-16 13:56:38 -07:00
Romain Guy
302a9df1d5
Add an API to set the transform on a TextureView's surface texture.
...
Bug #5156689
Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
2011-08-16 13:55:02 -07:00
Alex Sakhartchouk
117abdbc67
Fixing asynchronous performance issues.
...
Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
2011-08-16 13:09:46 -07:00
Mathias Agopian
47b2129350
revert last change to EGLUtils::selectConfigForPixelFormat
...
EGLUtils::selectConfigForPixelFormat is only used by
command line tests and it simply selects a config
based on the EGL_NATIVE_VISUAL_ID.
2011-08-15 15:25:39 -07:00
Alex Sakhartchouk
c929158f0e
Merge "Fix to the memory leak problem."
2011-08-12 15:29:46 -07:00
Jason Sams
f5af42933d
Merge "Fix the RS frame timeout. Previous a slow app would block from receiving new commands until the timer expired. This change will expire the timer immediatly."
2011-08-12 15:16:39 -07:00
Jason Sams
bfc7891bdd
Fix the RS frame timeout.
...
Previous a slow app would block from receiving new
commands until the timer expired. This change will
expire the timer immediatly.
Change-Id: I42b949d21f98ee0f1d3156763cd723c3e9cabb67
2011-08-12 15:05:15 -07:00
Romain Guy
e52531121d
Merge "Make sure we correctly copy caches keys. Bug #5136067 "
2011-08-12 14:35:27 -07:00
Romain Guy
e5df231434
Make sure we correctly copy caches keys.
...
Bug #5136067
Change-Id: I366e840bef44415436dc7b13d89cfb610feed663
2011-08-12 14:23:53 -07:00
Mathias Agopian
6e97ed2127
Merge "fix a memory leak and memory corruption in RefBase"
2011-08-12 12:23:54 -07:00
Alex Sakhartchouk
065fa8deb1
Fix to the memory leak problem.
...
Change-Id: I18dfa76ecae62ed5165415531adf3a13ad992b54
2011-08-12 11:30:30 -07:00
Justin Ho
1213697980
Merge "Replacing sans serif system font with Roboto"
2011-08-12 07:25:47 -07:00
Mathias Agopian
6fe2481392
fix a memory leak and memory corruption in RefBase
...
we would leak a weakref_impl if a RefBase was never incWeak()'ed.
there was also a dangling pointer that would cause memory corruption
and double-delete when a custom destroyer was used to delay the
execution of ~RefBase.
it turns out that the custom destroyer feature caused most of the
problems, so it's now gone. The only client was SurfaceFlinger
who now handles things on its own.
RefBase is essentially back its "gingerbread" state, but the
code was slightly cleaned-up.
Bug: 5151207, 5084978
Change-Id: Id6ef1d707f96d96366f75068f77b30e0ce2722a5
2011-08-11 22:33:02 -07:00
Romain Guy
03f156e96f
Merge "Remove unnecessary private API"
2011-08-11 17:51:23 -07:00
Romain Guy
9d865512f1
Remove unnecessary private API
...
Change-Id: I2ecb367528ec0691c07153a3d163b82a6ca33fdf
2011-08-11 17:37:02 -07:00
Christian Robertson
beb2b5cfdb
Replacing sans serif system font with Roboto
...
Change-Id: Ibe0aa11e2259898e65dc422c7794ab4065a0a90e
2011-08-11 15:35:52 -07:00
Dave Burke
4982b6918a
Revert "error out when SurfaceTexture APIs are called while not connected"
...
This reverts commit a04cda9986366ab480ad8008c4d923271b05d78e.
Conflicts:
include/gui/SurfaceTexture.h
libs/gui/SurfaceTexture.cpp
Change-Id: Ib655016462c496ee2a27f7cb33a6e8b18cfe684a
2011-08-11 15:13:19 +01:00
Mathias Agopian
246ae5011c
Merge "Read leftover parcel data when a parceled Surface is found in the cache."
2011-08-10 19:45:34 -07:00
Mathias Agopian
5c71575983
fix a crasher in SurfaceTexture::updateTexImage()
...
we now make sure to drain the buffer queue on disconnect.
this happens only when in synchrnous mode. in async mode
we clear all buffers except the head of the queue.
for extra safety we also catch the null pointer
in updateTexImage (which should never happen) and return
an error.
Bug: 5111008
Change-Id: I5174a6ecbb0de641c6510ef56a611cbb4e9e1f59
2011-08-10 17:35:52 -07:00
Mathias Agopian
71fd1213b4
rework dequeueBuffer()'s main loop.
...
this simplifies the code a bit and also makes sure
we reevaluate mAbandoned and mConnectedApi each time
we come back from waiting on mDequeueCondition
Change-Id: I1f8538b62ad321b51ed79d953b700036daba796d
2011-08-10 17:35:26 -07:00
Mathias Agopian
a04cda9986
error out when SurfaceTexture APIs are called while not connected
...
- also log a warning when freeAllBuffers is called with a non empty buffer queue
- rename freeAllBuffers to freeAllBuffersLocked
Change-Id: Idb71fdcf233b9ccae62d5a2a7c3c4bad2501d877
2011-08-10 17:33:46 -07:00
Ted Bonkenburg
3f945fa5ef
Read leftover parcel data when a parceled Surface is found in the cache.
...
This fixes an issue where the Surface readFromParcel code was leaving
unread parcel data in the case where the Surface was re-used from the
sCachedSurfaces cache. On a cache miss the code is creating a new
Surface from the remainder of the parcel data. On a hit that data was
being left unread, so anything that parcels a Surface followed by
additional arguments may end up reading the wrong values.
Change-Id: I25365159d945c125bd1fcc9f17e39a4f00aece55
2011-08-09 22:45:38 -07:00
Mathias Agopian
4954193651
fix a crasher in dumpsys
...
Bug: 5141729
Change-Id: Ib104d49c8660621180966be099198fe29c5bebf5
2011-08-09 15:49:26 -07:00
Mathias Agopian
f6d08b9528
Merge changes Ie06e73e5,I7ac6b5b0
...
* changes:
free all buffers when ANativeWindow::disconnect is called
return correct value from query after connecting a surface
2011-08-09 15:23:19 -07:00
Alex Sakhartchouk
9ce7c0971d
Merge "add renderscript doc comments for exposed headers"
2011-08-09 14:13:09 -07:00
Stephen Hines
9940c60af4
Merge "Start refactoring RS headerfiles for docs."
2011-08-09 14:00:51 -07:00
Alex Sakhartchouk
6b2b8bdb28
add renderscript doc comments for exposed headers
...
Change-Id: Ia7dd82f890775045e543963d64e6dcd3ea4db825
2011-08-09 11:36:19 -07:00
Jason Sams
573fa62074
Start refactoring RS headerfiles for docs.
...
Change-Id: Ieb7797601f94beec2835e1d936dc2dd0c38cb48c
2011-08-09 11:34:33 -07:00
Mathias Agopian
43a3d91dff
free all buffers when ANativeWindow::disconnect is called
...
Change-Id: Ie06e73e5b44398cda9e99876f78175b5eef765dc
2011-08-08 20:25:45 -07:00
Mathias Agopian
053b02df2d
return correct value from query after connecting a surface
...
the first time a surface was connected, the values returned
by query NATIVE_WINDOW_DEFAULT_{WIDTH|HEIGHT} and
NATIVE_WINDOW_TRANSFORM_HINT were wrong until a call
to queueBuffer was performed.
Bug: 5137366, 5121607
Change-Id: I7ac6b5b0daa876638f6bed7c20f286a6e6d984f6
2011-08-08 20:25:44 -07:00
Mathias Agopian
fc4ba11415
Merge "improve dumpsys SurfaceFlinger output"
2011-08-08 20:13:16 -07:00
Mathias Agopian
03edb5d6a6
Merge "add some logs to track a crash in eglCreateImageKHR"
2011-08-08 19:39:58 -07:00
Mathias Agopian
95dfd05c2c
add some logs to track a crash in eglCreateImageKHR
...
Bug: 5111008
Change-Id: I3e7f5b986151e80cbded39e0dec057770da52fc1
2011-08-08 19:36:22 -07:00
Stephen Hines
514a0b3612
Merge "Migrate perf-critical functions away from librs."
2011-08-08 16:12:56 -07:00
Mathias Agopian
0c3367f1bb
improve dumpsys SurfaceFlinger output
...
we now output the handle and size of all buffers of each layer.
Change-Id: I8d011ee4ae9199f4198bd07bed770ec3bcf02986
2011-08-08 16:02:13 -07:00
Jason Sams
d1bfd12704
Add RS docs for rs_core.rsh
...
Change-Id: Ic961138b2ce7730b38c7673e83c8891407580306
2011-08-08 15:54:14 -07:00
Stephen Hines
e004058419
Migrate perf-critical functions away from librs.
...
BUG=3497315
Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
2011-08-08 15:09:10 -07:00
Jason Sams
00ac96b819
Merge "Add docs to rs_types.rsh"
2011-08-08 14:35:16 -07:00
Jason Sams
a00e6d8bf1
Add docs to rs_types.rsh
...
Change-Id: Id2352f325c3ef9564cc226c6c5df908df16bb26a
2011-08-08 14:31:25 -07:00
Alex Sakhartchouk
75e0254731
Merge "Fixing rs crash when no texture is bound."
2011-08-08 11:25:03 -07:00
Romain Guy
4974bc1be6
Prevent crash when purging the gradients cache.
...
Bug #5133876
Change-Id: I3d1fa4e29498044796d725337ac93e6a1e8f0bcb
2011-08-08 10:55:55 -07:00
Alex Sakhartchouk
bbc41c034b
Fixing rs crash when no texture is bound.
...
Change-Id: I2c15106f50de995c63691f27e2c4d89dbffc758e
2011-08-05 15:27:25 -07:00
Stephen Hines
8f019d6305
Merge "Start using bcinfo components within librs."
2011-08-05 13:47:00 -07:00
Wu-cheng Li
09f6d67f37
Merge "Add camera bayer image format."
2011-08-04 01:46:56 -07:00
Wu-cheng Li
70fb908504
Add camera bayer image format.
...
The API are hidden.
bug:5086073
Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc
2011-08-04 16:40:28 +08:00
Stephen Hines
4382467a80
Start using bcinfo components within librs.
...
BUG=4942491
Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
2011-08-03 18:46:56 -07:00
Mathias Agopian
ec46b4e1ca
Add a 'release' method to the SurfaceTexture public Java API
...
Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
2011-08-03 17:23:44 -07:00