Rebecca Schultz Zavin
7ac5e698b2
Fix hardware overlay so all changes are commited when done.
2009-07-21 11:07:23 -07:00
Mathias Agopian
ac2dd4d82f
first attempt to fix the sim
2009-07-13 22:58:25 -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
Mike Reed
b5af325fb1
rename libsgl/libcorecg to libskia
2009-07-10 15:33:21 -04:00
Android (Google) Code Review
679353dab9
Merge change 6742
...
* changes:
fix [1969200] Uninitialized double passed to Math.sqrt()
2009-07-09 22:12:36 -07:00
Mathias Agopian
cafec03250
fix [1969200] Uninitialized double passed to Math.sqrt()
2009-07-09 22:11:57 -07:00
Mathias Agopian
07e456d871
am 4d2dbebf: fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
...
Merge commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f'
* commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f':
fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
2009-07-09 20:05:11 -07:00
Mathias Agopian
4d2dbebf3d
fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
2009-07-09 18:16:43 -07:00
Mathias Agopian
05dab6f127
fix for [1969185] valgrind errors in new gl stuff
2009-07-09 17:30:43 -07:00
Mathias Agopian
94aadce3a2
trying to fix the sim, I'm not even sure this syntaxe is valid, but my compilo doesn't complain
2009-07-06 19:04:55 -07:00
Mathias Agopian
f780d32fc2
don't need to link against libsgl
2009-07-02 19:04:39 -07:00
Mathias Agopian
d763b5d919
get rid of references to MemoryDealer in SurfaceFlinger
2009-07-02 18:50:51 -07:00
Mathias Agopian
0926b6184a
forgot to remove those files
2009-07-02 18:46:57 -07:00
Mathias Agopian
359140c171
free gralloc buffers as soon as possible (when a surface is not visible any longer), client who have the buffers still mapped won't crash, btu may see garbage data
2009-07-02 18:45:29 -07:00
Mathias Agopian
dfe983bd79
Merge commit 'goog/master' into merge_master
2009-07-01 18:33:18 -07:00
Mathias Agopian
ff80ceb80d
Allocate 16MB for surfaces on Firstone, since 8MB is way to small for our bigger screen.
2009-07-01 17:47:38 -07:00
Android (Google) Code Review
ed3240ed1a
am 58ebdcc0: Merge change 5625 into donut
...
Merge commit '58ebdcc06eca06741460a7db2be4b79e3865eb88'
* commit '58ebdcc06eca06741460a7db2be4b79e3865eb88':
fix [1947273] the DimLayer causes the whole screen to update during transactions
2009-07-01 00:06:47 -07:00
Mathias Agopian
3a6b160a3b
when there is a choice between UPDATE_ON_DEMAND and SWAP_BUFFER optimizations, choose UPDATE_ON_DEMAND which is often more efficient.
2009-06-29 18:57:42 -07:00
Mathias Agopian
ecfa7ccd4f
fix a bug that caused artifacts when SWAP_RECTANGLE was enabled
2009-06-29 18:49:56 -07:00
Mathias Agopian
5fc1b60e7f
don't use a 1/4th of the screen size texture for the dim layer
...
we can't use a texture of 1/4th of the screen for the dim layer, because the mdp internal input resultion is alwyas integers and for very small blits of a couple pixels the scale factor can get way out of range, for instance for a 7 pixels source, the scale factor would be either 7 (7/1) or 3.5 (7/2) instead of 4 (7/1.75). This caused the mdp to fail in some cases and revert to software. we now always use a texture of the actual screen size, so the problem will never happen. This burns 300KB of pmem instead of 21KB. On devices with a larger screen we might want to use a smaller texture and tile it by hand.
2009-06-29 17:32:20 -07:00
Mathias Agopian
0aed7e97a3
fix [1947273] the DimLayer causes the whole screen to update during transactions
2009-06-29 14:44:11 -07:00
Mathias Agopian
2f157b1919
fix [1947273] the DimLayer causes the whole screen to update during transactions
2009-06-28 02:54:16 -07:00
Mathias Agopian
8c9687ae29
fix an update bug with SHOW_UPDATE debug feature. Fix a problem with the debug binder codes too
2009-06-26 19:06:36 -07:00
Mathias Agopian
8f78faa1ef
add support for out-of-range copybit scaling. camera capture is in color again
2009-06-25 17:41:12 -07:00
Mathias Agopian
dafb08dcd5
use 1/16 the size (20KB) for the dim texture in the copybit/msm case
2009-06-25 16:21:32 -07:00
Mathias Agopian
68eeb80a54
use copybit for eglSwapBuffers() copy-back operations
2009-06-25 15:39:25 -07:00
Mathias Agopian
26c28b16f3
make use of new eglGetRenderBufferANDROID extension to clean-up a bit a few hacks added recently
2009-06-25 00:09:27 -07:00
Mathias Agopian
2eab9d8d70
copybit now uses a native_handle_t* instead of a fd/offset
2009-06-24 20:39:16 -07:00
Mathias Agopian
cbc4c9f8d5
hack copybit back in for video playback on msm7k. we have h/w accelerated video again
2009-06-24 20:39:16 -07:00
Mathias Agopian
c6603951d4
fix a bug causing push-buffer surfaces' identity to be garbage, which resulted in some attributes (size/pos) to fail to be set
2009-06-23 20:06:46 -07:00
Mathias Agopian
999543ba26
checkpoint. bring back video/camera
2009-06-23 18:08:22 -07:00
Mathias Agopian
f73bbd0423
Merge commit 'goog/master' into merge_master
2009-06-19 17:41:14 -07:00
Mathias Agopian
6edf5af578
fix a memory corruption where a SF Client could be used after it's been destroyed
2009-06-19 17:00:27 -07:00
Mathias Agopian
c8fb5b1979
release the last reference to surfaces explicitely instead of letting it go implicitely when the message is destroyed
2009-06-19 16:24:02 -07:00
Android (Google) Code Review
49eb3301c7
am c6282977: Merge change 4718 into donut
...
Merge commit 'c6282977180c220b1a68c23a328e7d75a11963ab'
* commit 'c6282977180c220b1a68c23a328e7d75a11963ab':
Fix sim-eng build and simplify previous lcd-density related patch
2009-06-18 19:46:59 -07:00
David 'Digit' Turner
3c08a446c5
Fix sim-eng build and simplify previous lcd-density related patch
2009-06-19 04:41:12 +02:00
Mathias Agopian
9cc88529e4
implement dimming with a texture on msm7k so it uses copybit
2009-06-18 18:48:39 -07:00
Android (Google) Code Review
e9c1970bbf
am b1cdb648: Merge change 4565 into donut
...
Merge commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982'
* commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982':
Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
2009-06-18 15:43:28 -07:00
David 'Digit' Turner
2a578ae518
Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
...
ro.sf.lcd_density is usually defined in the build.prop file which is parsed by init
before anything else. Since its name begins with "ro.", this property is write-once
and cannot later be modified, e.g. in /system/etc/init.goldfish.sh.
In other words, you cannot use "emulator -prop ro.sf.lcd_density=<value>", since
it is impossible to override the value defined in build.prop
This patch modifies the system to recognize "qemu.sf.lcd_density" as an override
value, which can be set with "emulator -prop qemu.sf.lcd_density=<value>", forcing
a specific density.
A later patch will allow the emulator to automatically set this property depending
on AVD hardware configuration settings.
2009-06-19 00:17:31 +02:00
Mathias Agopian
151e859e0f
new Permission class used to improve permission checks speed (by caching results)
2009-06-15 21:56:51 -07:00
Mathias Agopian
e19476214a
protect ANDROID specific egl extension with #define
2009-06-11 17:19:54 -07:00
Mathias Agopian
2d5ee25556
fix a bunch of problems with destroying surfaces.
...
now, all destruction path, go through the purgatory which is emptied when ~ISurface is called, but we also make sure to remove the surface from the current list from there (in case a client forgot to request the destruction explicitely).
2009-06-04 18:46:21 -07:00
Mathias Agopian
1277bb0116
when looking for an EGLConfig always pick the first one that matches, not the last one
2009-06-03 14:49:08 -07:00
Android (Google) Code Review
9176469702
am b61ae351: Merge change 2747 into donut
...
Merge commit 'b61ae351256518add7bcb40e0bf18337dd87195c'
* commit 'b61ae351256518add7bcb40e0bf18337dd87195c':
log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
2009-05-29 14:57:33 -07:00
Mathias Agopian
6d892b60dd
log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
2009-05-29 14:55:06 -07:00
Mathias Agopian
947f4f4d38
merge master to master_gl
2009-05-22 02:16:08 -07:00
Android (Google) Code Review
e755d64977
am 69a6c3eb: Merge change 2292 into donut
...
Merge commit '69a6c3ebd46a8de0e896747757f364322c12608d'
* commit '69a6c3ebd46a8de0e896747757f364322c12608d':
split boot animation out of SurfaceFlinger
2009-05-21 19:36:53 -07:00
Mathias Agopian
627e7b50be
split boot animation out of SurfaceFlinger
...
Conflicts:
data/etc/platform.xml
2009-05-21 19:21:59 -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