Mathias Agopian
bd8527110c
make sure to update the tail pointer when undoing a dequeue
2009-09-14 15:48:42 -07:00
Mathias Agopian
248b5bd51e
fix [2112575] stuck on DequeueCondition for a surface that doesn't exist anymore
...
this also fixes part of [2111536] Device is soft rebooted after ending the call through voice dialer
2009-09-10 19:41:18 -07:00
Mathias Agopian
436c627ca4
make sure conditions will return when the status of a surface is not NO_ERROR
2009-09-10 16:55:13 -07:00
Mathias Agopian
9779b221e9
fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly
...
Rewrote SurfaceFlinger's buffer management from the ground-up.
The design now support an arbitrary number of buffers per surface, however the current implementation is limited to four. Currently only 2 buffers are used in practice.
The main new feature is to be able to dequeue all buffers at once (very important when there are only two).
A client can dequeue all buffers until there are none available, it can lock all buffers except the last one that is used for composition. The client will block then, until a new buffer is enqueued.
The current implementation requires that buffers are locked in the same order they are dequeued and enqueued in the same order they are locked. Only one buffer can be locked at a time.
eg. Allowed sequence: DQ, DQ, LOCK, Q, LOCK, Q
eg. Forbidden sequence: DQ, DQ, LOCK, LOCK, Q, Q
2009-09-07 16:32:45 -07:00
Martin Storsjo
c0dea96491
Calculate specular lighting correctly
...
Since the lighting calculations are done in object space, the vector
from the object to the viewer also needs to be transformed to object
space.
2009-08-25 18:35:54 -07:00
Mathias Agopian
f233915016
be more friendly with C
2009-08-13 18:27:10 -07:00
Eric Laurent
a553c25b33
Fix issue 1795088 Improve audio routing code
...
Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
2009-07-23 06:03:39 -07:00
Mathias Agopian
fb4f266a1b
add a ctor to Mutex to specify the type, which can be shared. This is used by sf and af an soon will allow some optimization in the kernel for non shared mutexes
2009-07-13 22:06:36 -07:00
Mathias Agopian
b1c4ca5ad2
implement Mutex and Condition with pthread instead of calling futex directly.
...
internally pthread uses futex. the implementation consists of simple inlines
there are no implementation files anymore.
2009-07-13 15:14:23 -07:00
Android (Google) Code Review
42a3265cfb
Merge change 6382
...
* changes:
add a virtual destructor to region_rasterizer, to be on the safe side
2009-07-07 12:43:06 -07:00
Mathias Agopian
eb0ccd5c7b
add a virtual destructor to region_rasterizer, to be on the safe side
2009-07-07 12:29:17 -07:00
Eric Laurent
fcc5be99e0
am 88e209dc: Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
...
Merge commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c'
* commit '88e209dcf8c2ebddda5c272f46d1bd5478bc639c':
Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
2009-07-07 09:36:14 -07:00
Eric Laurent
88e209dcf8
Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
...
Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t.
Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate().
AudioTrack::setSampleRate() no returns a status.
2009-07-07 07:10:45 -07:00
Mathias Agopian
f31868e59f
merge master in master_gl
2009-06-24 18:31:21 -07:00
Android (Google) Code Review
ffa5a5a3db
am 5277103d: Merge change 5035 into donut
...
Merge commit '5277103db9033226814edc8fcba6f4ba4e846678'
* commit '5277103db9033226814edc8fcba6f4ba4e846678':
add glTexParameteri() and fix glTexParameteriv()
2009-06-22 22:04:12 -07:00
Mathias Agopian
aaf4b6b331
add glTexParameteri() and fix glTexParameteriv()
2009-06-22 18:09:09 -07:00
Mathias Agopian
350d651706
fix a bug where copybit only renders in the first buffer when used with s/w GL
2009-06-10 16:15:32 -07:00
Mathias Agopian
07fcf4c3a9
revive the copybit test.
2009-06-09 21:38:08 -07:00
Mathias Agopian
eb22c5b358
cleanup Debug.h a bit
2009-06-04 23:29:29 -07:00
Mathias Agopian
947f4f4d38
merge master to master_gl
2009-05-22 02:16:08 -07:00
Mathias Agopian
0795272aa2
move libbinder's header files under includes/binder
2009-05-20 12:55:03 -07:00
Mathias Agopian
25ba5b6564
checkpoint: split libutils into libutils + libbinder
2009-05-20 12:55:02 -07:00
Mathias Agopian
6158b1bf03
Region now has its own implementation instead of relying on SkRegion, which allows us to break libui's dependency on libcorecg.
2009-05-17 23:34:16 -07:00
Mathias Agopian
b51e18d59b
move android_native_buffer_t declaration into its own private/ui/android_native_priv.h header, since user code should never have access to it.
2009-05-05 18:21:32 -07:00
Mathias Agopian
ac2523b161
move opengl/include/EGL/android_natives.h to include/ui/egl/android_natives.h and don't include it from egl.h
...
the android_native_ types are just forward declared in egl.h
2009-05-05 18:11:11 -07:00
Mathias Agopian
6ead5d9f14
a brand new MessageQueue for SurfaceFlinger.
2009-04-24 16:22:36 -07:00
Mathias Agopian
1473f46cbc
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:30 -07:00
The Android Open Source Project
105925376f
auto import from //branches/cupcake_rel/...@140373
2009-03-18 17:39:46 -07:00
The Android Open Source Project
9066cfe988
auto import from //depot/cupcake/@135843
2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce
auto import from //depot/cupcake/@135843
2009-03-03 18:28:45 -08:00
The Android Open Source Project
d24b8183b9
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:00 -08:00
The Android Open Source Project
22f7dfd234
auto import from //branches/cupcake/...@127101
2009-01-20 14:03:58 -08:00
The Android Open Source Project
9266c558bf
auto import from //branches/cupcake/...@126645
2009-01-15 16:12:10 -08:00
The Android Open Source Project
f013e1afd1
Code drop from //branches/cupcake/...@124589
2008-12-17 18:05:43 -08:00
The Android Open Source Project
54b6cfa9a9
Initial Contribution
2008-10-21 07:00:00 -07:00