Commit graph

1973 commits

Author SHA1 Message Date
Android (Google) Code Review
9e44c4f198 Merge change 5893
* changes:
  Color Format and Overlay Functions
2009-07-17 23:37:19 -07:00
Rebecca Schultz Zavin
dbb872157b Remove redundant defines, these were only necessary while changes were
being staged to another repo

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-07-17 16:28:02 -07:00
Benny Wong
49b02f75eb Color Format and Overlay Functions
Add hardware overlay related function declarations and more color format enums
2009-07-17 16:26:25 -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
Iliyan Malchev
f5a22bcfa6 libhardware: add data field for proximity sensors
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-07-08 13:54:17 -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
da1b975339 Merge commit 'goog/master_gl' into merge_master_gl 2009-07-06 15:01:04 -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
5b44567e00 Merge commit 'goog/master' into merge_master 2009-06-05 15:45:43 -07:00
Mathias Agopian
82f7c04155 suppress spurious debug log 2009-06-03 19:03:26 -07:00
Bill Napier
5afaa8accc am 8d567480: Update open_data_source documentation to accurately reflect the correct return value on error.
Merge commit '8d567480b45a801a1955e4743c5eeae431d58f56'

* commit '8d567480b45a801a1955e4743c5eeae431d58f56':
  Update open_data_source documentation to accurately reflect the correct return value on error.
2009-06-03 13:00:03 -07:00
Bill Napier
8d567480b4 Update open_data_source documentation to accurately reflect the correct return value on error. 2009-06-02 17:46:10 -07:00
Mathias Agopian
8aee7e58cf Merge commit 'goog/master' into merge_master 2009-05-27 14:25:54 -07:00
Mike Lockwood
61caa2cf75 am 21b652f9: Sensors: Use a native_handle for the data channel instead of a single file descriptor.
Merge commit '21b652f933b21aa37bd73364b486347fcc333d5c'

* commit '21b652f933b21aa37bd73364b486347fcc333d5c':
  Sensors: Use a native_handle for the data channel instead of a single file descriptor.
2009-05-23 10:36:45 -07:00
Mike Lockwood
21b652f933 Sensors: Use a native_handle for the data channel instead of a single file descriptor.
This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-22 17:44:40 -04:00
Mathias Agopian
da1cfb76c5 Merge commit 'goog/master' into merge_master 2009-05-22 00:59:36 -07:00
Mathias Agopian
3a16d37825 am 465cf474: fix [1847499] sensors.h : "roll" documentation is wrong
Merge commit '465cf474beaf67c3d8b7fe6889ad74c1cfc572e1'

* commit '465cf474beaf67c3d8b7fe6889ad74c1cfc572e1':
  fix [1847499] sensors.h : "roll" documentation is wrong
2009-05-18 23:56:10 -07:00
Mathias Agopian
465cf474be fix [1847499] sensors.h : "roll" documentation is wrong 2009-05-18 14:09:59 -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
ccc13876d8 Merge commit 'goog/master' into merge_master 2009-04-28 15:24:01 -07:00
Jean-Baptiste Queru
76a1fe8dbc Merge donut into master 2009-04-22 18:33:17 -07:00
Jean-Baptiste Queru
d746ebd24a merge cupcake into donut 2009-04-22 17:56:58 -07:00
Jean-Baptiste Queru
30bebe3c46 Merge donut into master 2009-04-22 17:12:35 -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
4f14fe0b73 Merge commit 'goog/master' into master_gl 2009-04-10 14:26:14 -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
30fa54e39a Merge branch 'open_source_no_contributions' into google_internal 2009-03-29 08:55:10 -07:00