summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/DisplayHardware
AgeCommit message (Collapse)Author
2010-07-14move native services under services/ Mathias Agopian
moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
2010-06-25Revert "Revert "fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger"" Mathias Agopian
This reverts commit 330dd304a471d260a73e342a240921c03c825f99.
2010-06-25Revert "fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger" Andreas Huber
This reverts commit 081bc5c47d8a980e6eafa70ddafcd89981586391.
2010-06-24fix [2793164] Spam 2x/second with TOT master in SurfaceFlinger Mathias Agopian
Make sure to not use GL_TEXTURE_EXTERNAL when it's not supported by the GL. The error was harmless, but annoying. Change-Id: I571a9a9b05d35da51420950a6a6e95629067efd0
2010-05-14fix uninitialized variable in DisplayHardware Mathias Agopian
this fixes the issue where the display is all messed-up sometimes. Change-Id: I20be91b5166bfff0c6d353a777351842c9df8e95
2010-05-12remove the "memcpy" hack Mathias Agopian
this hack was used for gpus that don't support cached buffers for s/w clients. currently we have no gpu with this issue. this removes quite a bit of complexity. Change-Id: I72564669f124f92805030e61983711f61c76b6d9
2010-04-20clean-up surfaceflinger a bit Mathias Agopian
get rid of the glDrawTexi path and use floating points instead of fixed point maths Change-Id: I3aa9ce2dc082f702160e605a16ba5fe987cdf087
2010-04-14fix [2594950] Flash: Zooming in on some content crashes the Nexus One and ↵ Mathias Agopian
causes it to reboot (runtime restart) We now limit the size of the surface to the maximum size supported by the GPU. On Nexus One this will 2048 -- it could be different on other devices. Surface creation fails if the limit is exceeded. Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
2010-03-02surfaceflinger: remove un-cached buffers hack for Adreno Dima Zavin
Change-Id: I5ae4e74bfa3e25b55be2cddf7b3c51368a140ab9 Signed-off-by: Dima Zavin <dima@android.com>
2009-12-03surfaceflinger: remove un-cached buffer hack for SGX Erik Gilling
Signed-off-by: Erik Gilling <konkers@android.com>
2009-11-13addresses several bugs: 2206097, 2166583, 2261119, 2216759 Mathias Agopian
2206097: Broken suggestions while composing message 2166583: Color artifacts with MDP dithering 2261119: Passion transition animations are rough 2216759: Screen flicker when dropdown list in background window shows or hides This is part of enabling GPU composition instead of using the MDP. This change is dependent on another change in the vendor project. Specifically this change disables the use of EGLImageKHR for s/w buffers for cache coherency reasons. memcpy is used instead.
2009-10-27 fix [2143798] Need to figure out how to do video Mathias Agopian
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
2009-10-06Revert "temporarily disable the use of glTexImage2D for sw buffers on sholes." Mathias Agopian
This reverts commit c131c5671965b69b0dee3e4afa3b3dd5e3c0c405. Approved by Hiroshi
2009-10-06temporarily disable the use of glTexImage2D for sw buffers on sholes. Mathias Agopian
we're going to first cut a build without this change. Approved by Dr. Hiroshi.
2009-10-06fix [2168528] enable glTexImage2D code path in SF for software-only buffers Mathias Agopian
2009-09-24minor SurfaceFlinger code cleanup and remove unnecessary tests Mathias Agopian
2009-09-17Android side of the fix for [2121211] Sholes has stutter during animations Mathias Agopian
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
2009-09-16disable backbuffer preservation when possible, which may improve performance ↵ Mathias Agopian
a bit
2009-09-09add a debug property to disable h/w composition. debug.sf.hw, when set to 0 ↵ Mathias Agopian
will disable h/w composition
2009-09-07fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly Mathias Agopian
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
2009-08-12make sure EGL_ANDROID_swap_rectangle is actually supported before using it Mathias Agopian
2009-08-12Better error handling in EGL extensions Mathias Agopian
2009-08-07minor code clean-up Mathias Agopian
2009-08-06added two EGL helpers for selecting a config matching a certain pixelformat ↵ Mathias Agopian
or native window type
2009-07-29am 1521cd6e: Merge change 8015 into donut Android (Google) Code Review
Merge commit '1521cd6e657ba4efa9382ab73d3cbba3bdf50ead' * commit '1521cd6e657ba4efa9382ab73d3cbba3bdf50ead': Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.
2009-07-29Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined. David 'Digit' Turner
This will make android.view.Display return corresponding values for the screen's DPI.
2009-07-09fix [1969200] Uninitialized double passed to Math.sqrt() Mathias Agopian
2009-06-29when there is a choice between UPDATE_ON_DEMAND and SWAP_BUFFER ↵ Mathias Agopian
optimizations, choose UPDATE_ON_DEMAND which is often more efficient.
2009-06-29fix a bug that caused artifacts when SWAP_RECTANGLE was enabled Mathias Agopian
2009-06-26fix an update bug with SHOW_UPDATE debug feature. Fix a problem with the ↵ Mathias Agopian
debug binder codes too
2009-06-25make use of new eglGetRenderBufferANDROID extension to clean-up a bit a few ↵ Mathias Agopian
hacks added recently
2009-06-24hack copybit back in for video playback on msm7k. we have h/w accelerated ↵ Mathias Agopian
video again
2009-06-19Merge commit 'goog/master' into merge_master Mathias Agopian
2009-06-19Fix sim-eng build and simplify previous lcd-density related patch David 'Digit' Turner
2009-06-19Allow the qemu.sf.lcd_density property to override the value of ↵ David 'Digit' Turner
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-11protect ANDROID specific egl extension with #define Mathias Agopian
2009-06-03when looking for an EGLConfig always pick the first one that matches, not ↵ Mathias Agopian
the last one
2009-05-07add support for update-on-demand in SurfaceFlinger Mathias Agopian
2009-05-07fix EGL extension string names Mathias Agopian
2009-05-07created an new EGL extension called ANDROID_swap_rectangle Mathias Agopian
ANDROID_swap_rectangle allows to specify the rectangle affected by eglSwapBuffers(), anything outside of this rectangle is unchanged. in particular EGL_BUFFER_DESTROYED only applies to that rectangle. This extension as well as EGL_BUFFER_PRESERVED allow major optimizations on surfaceflinger, which can redraw only the dirty area during compositing. However, ANDROID_swap_rectangle allows further optimizations in EGL by reducing the amount of copy-back needed. ANDROID_swap_rectangle is particularily important for software implementations.
2009-05-05move opengl/include/EGL/android_natives.h to ↵ Mathias Agopian
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
2009-05-04minor clean-up in FramebufferNativeWindow Mathias Agopian
2009-05-04update surfaceflinger, libui and libagl to the new gralloc api Mathias Agopian
- Currently the lock/unlock path is naive and is done for each drawing operation (glDrawElements and glDrawArrays). this should be improved eventually. - factor all the lock/unlock code in SurfaceBuffer. - fixed "showupdate" so it works even when we don't have preserving eglSwapBuffers(). - improved the situation with the dirty-region and fixed a problem that caused GL apps to not update. - make use of LightRefBase() where needed, instead of duplicating its implementation - add LightRefBase::getStrongCount() - renamed EGLNativeWindowSurface.cpp to FramebufferNativeWindow.cpp - disabled copybits test, since it clashes with the new gralloc api - Camera/Video will be fixed later when we rework the overlay apis
2009-04-10Integrate from //sandbox/mathias/donut/...@145728 Mathias Agopian
SurfaceFlinger rework for new EGL driver model support.
2009-03-03auto import from //depot/cupcake/@135843 The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843 The Android Open Source Project
2009-02-10auto import from //branches/cupcake/...@130745 The Android Open Source Project
2009-01-15auto import from //branches/cupcake/...@126645 The Android Open Source Project
2009-01-09auto import from //branches/cupcake/...@125939 The Android Open Source Project
2008-12-17Code drop from //branches/cupcake/...@124589 The Android Open Source Project