summaryrefslogtreecommitdiffstats
path: root/include/ui
Commit message (Collapse)AuthorAgeFilesLines
* Add a new connect/disconnect API to android_native_window_tMathias Agopian2010-03-111-1/+37
| | | | | | it's used to keep track of which API owns the surface. Change-Id: I1021c5905c020efc3c428e561b38189377168b22
* remove a dependency of GraphicBuffer (libui) on Parcel (libbinder).Mathias Agopian2010-02-211-5/+12
| | | | | | | | | Add a Flattenable interface to libutils which can be used to flatten an object into bytestream + filedescriptor stream. Parcel is modified to handle Flattenable. And GraphicBuffer implements Flattenable. Except for the overlay classes libui is now independent of libbinder.
* Remove a dependency of Region (libui) on Parcel (libbinder).Mathias Agopian2010-02-171-6/+0
|
* fix a bug I introduced recently where YUV formats would crash the systemMathias Agopian2010-02-161-1/+2
|
* get rid off the YUV formats at the libui layerMathias Agopian2010-02-161-18/+9
|
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-1111-1693/+0
|
* Add exposure compensation parameter.Wu-cheng Li2010-02-091-0/+7
| | | | bug:2375993
* Add float support for set and get in CameraParameters.Wu-cheng Li2010-01-311-0/+2
| | | | | bug:2375989 bug:2375987
* Add focal length and view angle API.Wu-cheng Li2010-01-301-0/+10
| | | | bug:2375989,2375987
* Add support for setting camera display orientation.Chih-Chung Chang2010-01-262-10/+1
|
* Change key to KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES for consistency.Wu-cheng Li2010-01-251-3/+4
| | | | bug:2375986
* Add support for 180/270 degrees rotation.Chih-Chung Chang2010-01-221-1/+4
|
* Add an orientation parameter for overlay, so we can do camera preview in ↵Chih-Chung Chang2010-01-211-1/+1
| | | | portrait mode.
* fix some aspects of [2258746] native crash in launcher2Mathias Agopian2009-11-131-2/+2
| | | | | | Surface::validate() could sometimes dereference a null pointer before checking it wasn't null. This will prevent the application to crash when given bad parameters or used incorrectly. However, the bug above probably has another cause.
* fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts ↵Mathias Agopian2009-11-021-0/+2
| | | | | | | | when playing back video we lost the concept of vertical stride when moving video playback to EGLImage. Here we bring it back in a somewhat hacky-way that will work only for the softgl/mdp backend.
* Use image rect information to display zoomed picture.Wu-cheng Li2009-10-291-0/+9
|
* fix [2143798] Need to figure out how to do videoMathias Agopian2009-10-271-2/+12
| | | | | | | | | Use EGLImageKHR instead of copybit directly. We now have the basis to use streaming YUV textures (well, in fact we already are). When/if we use the GPU instead of the MDP we'll need to make sure it supports the appropriate YUV format. Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
* fix [2170319] gmail bulk operation checkbox latency on passionMathias Agopian2009-10-071-1/+1
| | | | | | | | | | | | | | | This also fixes [2152536] ANR in browser When SF is enqueuing buffers faster than SF dequeues them. The update flag in SF is not counted and under some situations SF will only dequeue the first buffer. The state at this point is not technically corrupted, it's valid, but just delayed by one buffer. In the case of the Browser ANR, because the last enqueued buffer was delayed the resizing of the current buffer couldn't happen. The system would always fall back onto its feet if anything -else- in tried to draw, because the "late" buffer would be picked up then.
* fix [2167050] glTexImage2D code path buggy in SurfaceFlingerMathias Agopian2009-10-066-14/+296
| | | | | | | | | | | | | | When EGLImage extension is not available, SurfaceFlinger will fallback to using glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an extra copy. However this code path has never been exercised and had some bugs which this patch fix. Mainly the scale factor wasn't computed right when falling back on glDrawElements. We also fallback to this mode of operation if a buffer doesn't have the adequate usage bits for EGLImage usage. This changes only code that is currently not executed. Some refactoring was needed to keep the change clean. This doesn't change anything functionaly.
* Add zoom functions and sendCommand.Wu-cheng Li2009-10-063-2/+19
| | | | b2060030
* Change FLASH_MODE_VIDEO_LIGHT to FLASH_MODE_TORCH.Wu-cheng Li2009-09-281-5/+7
|
* Add camera parameter key constants and documentation.Wu-cheng Li2009-09-251-1/+193
|
* fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to ↵Mathias Agopian2009-09-231-0/+4
| | | | create flip chain)
* Android side of the fix for [2121211] Sholes has stutter during animationsMathias Agopian2009-09-171-0/+1
| | | | a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to
* fix [2122448] android_native_window_t::setUsage() only reallocates the first ↵Mathias Agopian2009-09-151-2/+1
| | | | | | | | buffer Take 2. We needed to check that the usage flags are "good enough" as opposed to "the same". This reverts commit 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.
* Revert "fix [2122448] android_native_window_t::setUsage() only reallocates ↵Mathias Agopian2009-09-151-1/+2
| | | | | | the first buffer" This reverts commit 486aa963b63e20b7910e1004cebb4f0afabbd80f.
* fix [2122448] android_native_window_t::setUsage() only reallocates the first ↵Mathias Agopian2009-09-151-2/+1
| | | | buffer
* Fix 2083478: Camera needs an auto-focus cancel APIChih-Chung Chang2009-09-153-0/+14
| | | | Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
* fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properlyMathias Agopian2009-09-073-21/+20
| | | | | | | | | | | | | | | 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
* fix a bug that caused the PixelFormat viewed by Surface to be wrong.Mathias Agopian2009-08-191-0/+3
| | | | | what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly. in particular this caused query(FORMAT) to return the requested format instead of the effective format.
* really be more friendly with CMathias Agopian2009-08-171-8/+8
|
* make sure to update a surface's usage bits when it changes, instead of only ↵Mathias Agopian2009-08-141-17/+35
| | | | | | the first time. also fixed a few locking issues in Surface and commented how each member is protected.
* be more friendly with CMathias Agopian2009-08-131-15/+15
|
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-2/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* ui: make native_window_set_usage be a static inlineDima Zavin2009-08-131-1/+1
| | | | Signed-off-by: Dima Zavin <dima@android.com>
* Modified the camera HAL interface to use the same generic callback ↵Benny Wong2009-08-132-74/+82
| | | | architecture as camera services
* second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-114-4/+47
| | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-114-47/+4
| | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-114-4/+47
| | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* Expose a variation of the createRenderer API that works on a plain Surface.Andreas Huber2009-08-101-2/+2
|
* added EGLUtils::strerrorMathias Agopian2009-08-071-0/+2
|
* Merge changes 20345,20346,20347Android (Google) Code Review2009-08-062-1/+53
|\ | | | | | | | | | | | | * changes: update most gl tests to use EGLUtils added two EGL helpers for selecting a config matching a certain pixelformat or native window type added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
| * added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-061-0/+51
| | | | | | | | or native window type
| * added NATIVE_WINDOW_FORMAT attribute to android_native_window_tMathias Agopian2009-08-061-1/+2
| |
* | EventHub: pass the name of each input device up to JavaIliyan Malchev2009-08-061-1/+1
|/ | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* Finish implementation of multiple pointer support for MotionEvent.Dianne Hackborn2009-08-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | The major things going on here: - The MotionEvent API is now extended to included "pointer ID" information, for applications to keep track of individual fingers as they move up and down. PointerLocation has been updated to take advantage of this. - The input system now has logic to generate MotionEvents with the new ID information, synthesizing an identifier as new points are down and trying to keep pointer ids consistent across events by looking at the distance between the last and next set of pointers. - We now support the new multitouch driver protocol, and will use that instead of the old one if it is available. We do NOT use any finger id information coming from the driver, but always synthesize pointer ids in user space. (This is simply because we don't yet have a driver reporting this information from which to base an implementation on.) - Increase maximum number of fingers to 10. This code has only been used with a driver that reports up to 2, so no idea how more will actually work. - Oh and the input system can now detect and report physical DPAD devices.
* The IOMX interface now instantiates IOMXRenderers to hide the details of ↵Andreas Huber2009-07-311-0/+2
| | | | hardware accelerated blitting.
* Merge change 9287Android (Google) Code Review2009-07-303-1/+21
|\ | | | | | | | | * changes: fixed some issues with the software renderer when surfaces are made current.
| * fixed some issues with the software renderer when surfaces are made current.Mathias Agopian2009-07-303-1/+21
| | | | | | | | | | | | | | | | | | | | there was several issues: - when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked - when a surface was made current the 2nd time, it would not dequeue a new buffer now, queue/dequeue are done when the surface is made current. for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
* | Adding resizeInput and setAttributes for overlayBenny Wong2009-07-291-0/+6
|/