Mathias Agopian
9e3ebf8c45
add basic time stats for surfaces lock time
15 years ago
Mathias Agopian
5a37cc5155
make sure to update the tail pointer when undoing a dequeue
15 years ago
Mathias Agopian
4fc61bfdef
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
15 years ago
Mathias Agopian
3dbf98cec7
make sure conditions will return when the status of a surface is not NO_ERROR
15 years ago
Mathias Agopian
81e2a52fea
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
15 years ago
Martin Storsjo
4e3d2484c9
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.
15 years ago
Mathias Agopian
806a5fcb30
be more friendly with C
15 years ago
Eric Laurent
c2f1f07084
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()
15 years ago
Mathias Agopian
b07c28b90b
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
15 years ago
Mathias Agopian
00ee480034
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.
15 years ago
Android (Google) Code Review
814914cd08
Merge change 6382
...
* changes:
add a virtual destructor to region_rasterizer, to be on the safe side
15 years ago
Mathias Agopian
7c5252ed0a
add a virtual destructor to region_rasterizer, to be on the safe side
15 years ago
Eric Laurent
349dba337e
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
15 years ago
Eric Laurent
573266210f
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.
15 years ago
Mathias Agopian
e35922dc71
merge master in master_gl
15 years ago
Android (Google) Code Review
e4f071b1f3
am 5277103d: Merge change 5035 into donut
...
Merge commit '5277103db9033226814edc8fcba6f4ba4e846678'
* commit '5277103db9033226814edc8fcba6f4ba4e846678':
add glTexParameteri() and fix glTexParameteriv()
15 years ago
Mathias Agopian
f1bd03d1eb
add glTexParameteri() and fix glTexParameteriv()
15 years ago
Mathias Agopian
2ff585f4bd
fix a bug where copybit only renders in the first buffer when used with s/w GL
15 years ago
Mathias Agopian
79021f4b51
revive the copybit test.
15 years ago
Mathias Agopian
348514d9be
cleanup Debug.h a bit
15 years ago
Mathias Agopian
794aaef95e
merge master to master_gl
15 years ago
Mathias Agopian
7562408b22
move libbinder's header files under includes/binder
15 years ago
Mathias Agopian
615a9bfbd9
checkpoint: split libutils into libutils + libbinder
15 years ago
Mathias Agopian
cde489a26a
Region now has its own implementation instead of relying on SkRegion, which allows us to break libui's dependency on libcorecg.
15 years ago
Mathias Agopian
376f561469
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.
15 years ago
Mathias Agopian
81dd9e9f10
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
15 years ago
Mathias Agopian
4fde27f0b8
a brand new MessageQueue for SurfaceFlinger.
15 years ago
Mathias Agopian
b1514c918d
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
15 years ago
The Android Open Source Project
1179bc9b0e
auto import from //branches/cupcake_rel/...@140373
16 years ago
The Android Open Source Project
89fa4ad53f
auto import from //depot/cupcake/@135843
16 years ago
The Android Open Source Project
15f767b960
auto import from //depot/cupcake/@135843
16 years ago
The Android Open Source Project
5e07b5774c
auto import from //branches/cupcake/...@130745
16 years ago
The Android Open Source Project
e5198b620a
auto import from //branches/cupcake/...@127101
16 years ago
The Android Open Source Project
54ffb8abf9
auto import from //branches/cupcake/...@126645
16 years ago
The Android Open Source Project
7b5eb023f8
Code drop from //branches/cupcake/...@124589
16 years ago
The Android Open Source Project
2729ea9262
Initial Contribution
16 years ago