Mathias Agopian
7e734baec7
don't use undefined constants
2010-02-16 17:03:50 -08:00
Mathias Agopian
9da751bbf7
fix [2444483] gralloc size for YUV formats
2010-02-16 14:04:00 -08:00
Mathias Agopian
ee4e57e949
remove unused code
2009-12-15 17:22:56 -08:00
Mathias Agopian
f96b2064d7
remove all references to pmem and simplify the lock/unlock hooks
...
this gralloc module is only used on the emulator or without a h/w
renderer. therefore there is no synchronization to do in lock/unlock
and pmem buffers are not relevant.
hopefully this will remove some of the confusion about how gralloc
should be implemented and make it more obvious that this implementation
is not intended to be used by h/w renderers.
2009-12-15 15:00:57 -08:00
Patrick Scott
baf99300f7
Remove call to dump_l.
...
This fail to compile without NDEBUG and the following log statement does
something similar.
2009-10-29 08:33:42 -04:00
Mathias Agopian
fc05413281
split gralloc_priv.h and make sure it is C friendly
2009-08-18 17:35:44 -07:00
Mathias Agopian
876b4e8b84
integrate this change from the generic gralloc
2009-08-18 17:24:52 -07:00
Mathias Agopian
ed04f7871b
don't memset ashmem region, especially before they're mmapped
2009-08-08 17:01:18 -07:00
Mathias Agopian
7d512e3dc3
add support for RGBX_8888
2009-08-07 20:55:37 -07:00
Mathias Agopian
e83629abb9
make sure to clear surface's buffers when they are allocated
2009-08-07 18:13:47 -07:00
Marco Nelissen
15c9d3af0d
Fix the simulator build.
2009-07-17 11:15:18 -07:00
Mathias Agopian
3e1f89bcca
fix [1980202] Surfaceflinger crash with transparent rollo on firestone
...
we now automatically size the pmem region isntead of using hardcoded values
2009-07-16 18:06:19 -07:00
Mathias Agopian
6d125da5d2
generic gralloc HAL doesn't need to support partial updates using msm7k specific ioctl.
2009-07-15 15:12:13 -07:00
Mathias Agopian
05eacf533e
better logs
2009-07-13 18:32:37 -07:00
Mathias Agopian
82aee24379
automatically detect update-on-demand
2009-07-13 14:54:52 -07:00
Mathias Agopian
bd80b38f29
more fixes for [1965730]. We now free (unmap) both ashmem and pmem regions.
2009-07-07 17:53:43 -07:00
Mathias Agopian
440d4e4741
for [1965730], give a better name to gralloc buffers
2009-07-07 16:36:31 -07:00
Mathias Agopian
85ce19a4d3
fix [1965730] Device always give force close screen and completely unusable in Éclair build ERC07,rebooted automatically
2009-07-07 16:30:42 -07:00
Mathias Agopian
bfc010a750
better fix for gralloc on sim
2009-07-07 12:43:35 -07:00
Android (Google) Code Review
d34fd72bfd
Merge change 6375
...
* changes:
Fix build on some linux distros.
2009-07-07 12:21:48 -07:00
Mathias Agopian
d28d7e87f8
fix [1965734] Screen flickers a lot [Sholes]
2009-07-07 12:20:31 -07:00
Andy McFadden
f84106910d
Fix build on some linux distros.
...
The place where the PAGE_SIZE value is defined varies, mostly because
you're not supposed to be using it directly. sysconf(_SC_PAGE_SIZE)
is the approved method, and in fact some Linux distros actually #define
PAGE_SIZE to the library call.
2009-07-07 11:29:32 -07:00
Marco Nelissen
a4b587cb06
Simulator build fixes for the new GL stuff. The simulator still doesn't run, but at least it builds.
2009-07-07 09:29:00 -07:00
Mathias Agopian
cdb66fbc8a
workaroud [1964234] emulator renders funny with new gralloc.
...
we detect we're running on the emu (using a very bad heuristic, see 1964251) and switch UPDATE_ON_DEMAND off.
2009-07-06 20:56:13 -07:00
Mathias Agopian
3d6ddfe771
fix [1964228] emulator crash with the new GL
...
gralloc didn't keep the error state properly, so after the first pmem allocation failure, it would systematically fail without reverting to ashmem.
2009-07-06 20:54:51 -07:00
Mathias Agopian
14784235ab
make sure to UNSLAP pmem buffers when they're destroyed/freed, as the client could still have them mmapped
2009-07-02 17:32:15 -07:00
Mathias Agopian
8bf1f75268
add support for YUV formats
2009-06-25 17:38:50 -07:00
Mathias Agopian
689fa73c06
copybit now uses a native_handle_t* instead of a fd/offset
2009-06-24 20:36:52 -07:00
Mathias Agopian
31802ca9c0
fallback to ashmem when pmem is not availlable
2009-06-19 16:14:09 -07:00
Mathias Agopian
ed93e8b392
suppress debug log
2009-06-16 18:26:17 -07:00
Mathias Agopian
8c4ab1fa14
pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot more address space than needed.
2009-06-16 18:16:38 -07:00
Mathias Agopian
72c8508db9
add an offset field to gralloc handles so the framebuffer can work with copybit
2009-06-10 16:06:28 -07:00
Mathias Agopian
5115665397
with the new lock/unlock API we don't really mean reference counting on mmap/munmap because we're guaranteed to map the buffers only once within a process.
...
no need to track all handles anymore, which simplifies the code a lot.
2009-06-09 20:50:34 -07:00
Mathias Agopian
82f7c04155
suppress spurious debug log
2009-06-03 19:03:26 -07:00
Mathias Agopian
f5cf8f842a
better documentation for (*setUpdateRect)()
2009-05-07 17:39:31 -07:00
Mathias Agopian
485e69809a
better documentation and implementation for lock/unlock
2009-05-05 20:49:49 -07:00
Mathias Agopian
295190f426
get rid of unused/needed flags
2009-05-05 18:30:52 -07:00
Mathias Agopian
988b8bd553
lock will now return the vaddr of the buffer. map/umap are gone.
...
- make sure to return an error if a buffer is locked twice or unlocked while not locked.
- added registerBuffer() and unregisterBuffer() to the gralloc module so that we can do some cleanup when a buffer is no longer needed. this became necessary after we removed map/unmap so we have a place to unmap buffers without the need of a kernel module.
- change the constants for GRALLOC_USAGE_SW_{READ|WRITE}_NEVER to 0, so that NOT specifying them means "NEVER".
2009-05-04 14:26:56 -07:00
Mathias Agopian
c3ce41d319
don't automatically unmap buffers when they're freed
...
this is in preparation to an api change wrt gralloc map/unmap
2009-04-14 18:24:09 -07:00
Mathias Agopian
a8a75166a2
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:31 -07:00
The Android Open Source Project
f53ebec387
auto import from //depot/cupcake/@135843
2009-03-03 19:32:14 -08:00
The Android Open Source Project
d51f49a11d
auto import from //depot/cupcake/@135843
2009-03-03 18:28:48 -08:00
The Android Open Source Project
b376203efb
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:04 -08:00
The Android Open Source Project
f87393cb24
auto import from //branches/cupcake/...@127101
2009-01-20 14:03:59 -08:00
The Android Open Source Project
0100d517b1
auto import from //branches/cupcake/...@126645
2009-01-15 16:12:12 -08:00
The Android Open Source Project
699d24ab11
auto import from //branches/cupcake/...@125939
2009-01-09 17:51:24 -08:00
The Android Open Source Project
51704bed79
Code drop from //branches/cupcake/...@124589
2008-12-17 18:05:50 -08:00