summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp
Commit message (Collapse)AuthorAgeFilesLines
* surfaceflinger: call perform function with custom events to HALArun Kumar K.R2012-05-271-11/+1
| | | | | | | | | | | - SF will call perform with event and value to inform HALS about custom events(external display, orientation change etc.,) - remove actionsafe related functions. CRs-Fixed: 341947 (cherry picked from commit ca1e7b9ee353bc4d2fdc2234d8860e84bbff74f1) Change-Id: Icfe5f2f8ce56561c6959e206771b2850a3597e70
* SurfaceFlinger: Let HWC handle an alpha blendingKyong Hwa Bae2012-05-261-2/+3
| | | | | | | | | | | | | when either C2D or DYN is set Before we only use GPU to blend an alpha value. However C2D can also handle the alpha blending, when the composition type is set to either C2D or DYN, use HWC to handle this. And set the alpha value of C2D to HWC_BLENDING_PREMULT, so later C2D can set alpha blending parameter. Change-Id: I53be1d4219fbf2467a6391276d59213858a50058
* DisplayHardware: Set MDP composition flag correctlyNaseer Ahmed2012-03-041-4/+4
|
* QCOM: HDMI: add cflags for qcom hdmi out.toastcfh2011-12-221-1/+2
| | | | | | | | set string com.qc.hdmi_out=true to enable java hdmi service. set false by default set TARGET_QCOM_HDMI_OUT true in BoardConfig to enable qcom hdmi bits Change-Id: I9286bd01085657251d83b4649d0ef86433947765
* frameworks/base: Enable HDMIPrabhanjan Kandula2011-12-201-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change contains following commits. commit 27889d5e0c7951d9cc454c0cdc84bb6c4e4d93b4 Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Wed Jun 15 15:12:33 2011 -0700 frameworks/base: Remove unnecessary ioctls from HDMI Daemon - Remove FBIO_BLANK_POWERDOWN as the device will be powered down when the ref count reaches zero in framebuffer - Remove MSMFB_OVERLAY_PLAY_ENABLE as it will be depricated (cherry picked from commit 9dfcc8c1c5b6a4695ef807d11b67cae25ff8fcfd) Change-Id: I28cbf52edd3c244f1f04be3df5bc4c5a091fde13 commit 98774ca7b39995a169022289274cdc4e99dc4848 Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Fri May 27 14:12:18 2011 -0700 frameworks/base: Set hdmiON property before informing SF In the HDMI Daemon mirroring is enabled set the hdmiON system property before informing surface flinger to start mirroring. Change-Id: Ib897cfe9f9e113553cb0272e3d0fc04437b3577b commit d6c4ac202205cfdbacd49951bbdfe42cb9ced971 Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Mon May 9 20:15:44 2011 -0700 frameworks/base: Changes for HDMI HDCP Compliance - For HDCP compliance, broadcast HDMIONEvent after we receive the audio_on event from the daemon based on HDCP - In HDMI Daemon check if the HDCP keys are present based on that broadcast for Audio. - Remove redundant calls for PUT_VSCREENINFO and handle this in setResolution. Change-Id: I7fa23ac1a384fcc32687b287dbb828445d4d81a4 commit 798421991797c249e9eb554f91d49e0d898327fa Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Thu Apr 7 18:55:44 2011 -0700 HDMIDaemon: call FBIO_PUTVSCREENINFO ioctl for valid mode Analog TV does not have the EDID information. For analog TV no need to call the ioctl, as it defaults to its original resolution Change-Id: I18daab570167004be76d47cd58413408a20b0987 CRs-fixed: 281752 commit c512a0c47116394de431b6957213ac2cabcfc091 Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Wed Mar 16 13:12:53 2011 -0700 Hdmi Daemon: Inform SF about HDMI mirroring when HDMI is enabled When HDMI is connected, inform SF about mirroring only once. Avoid multiple enableHDMI calls to SF when cable is connected. Change-Id: I00d72571d2796e204401f57a87d9e580a3c8e994 CRs-fixed: 279095 commit 92de304205eb65e5bfd6976eef6396e908df4829 Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Mon Mar 28 17:43:22 2011 -0700 frameworks/base: Use sanitized kernel headers Add the exported sanitized kernel headers to include path in hdmid and surfaceflinger. As hdmid uses some bionic specific structs, explicitly add path of kernel header files it uses. Change-Id: Id0daed4a425976fad3116de2d2054c9c386770fe commit bd484e4de3031b393e2b4e1c91a17c2b9bc4acac Author: Arun Kumar K.R <c_akkr@quicinc.com> Date: Mon Mar 7 19:37:56 2011 -0800 frameworks/base: HPD enable on sysfs Fixes the issue where HDMI user setting is ON, Cable is connected and on reboot, we don't see HDMI output. Enables/Disables HPD by writing to sysfs node from Daemon Removes mirroring calls from HDMIService. Change-Id: Ide8ac1d60d9b04be2dcb79323f42750ef8f045c3 commit d2076706b4a1636c3e67131498824048b43046cb Author: Saurabh Shah <saurshah@codeaurora.org> Date: Thu Oct 28 10:26:44 2010 -0700 frameworks/base/:Interface for action-safe width, height Interface and implementation for setting action-safe width and height from userspace. commit 5446eab60c8c88417375607dea5ccc246cdd9bd0 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Mon Nov 8 18:29:49 2010 -0800 frameworks/base: Enable/Disable HDMI UI mirroring based on HPD commit 24d813ec5e79ae92e7efc2f4286bb4425dec1053 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Sep 23 17:06:26 2010 -0700 frameworks\base: Support for switching resolution in HDMI daemon Use property enable.hdmi.edid to enable the dynamic resolution switch Set hdmi.yRes to required resolution. commit 60208c205645f7da7d148655d638d36bc7cca121 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Aug 31 19:21:53 2010 -0700 frameworks/base: SF to control HDMI output Change SF to control HDMI output. HDMI Daemon will call SF to control HDMI out. HPD based on fbopen/fbclose, which is controlled by User settings. commit b180d502bc53bb55bc168048d7b691f33899e4db Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 4 14:14:00 2010 -0600 frameworks/base: hdmid: HPD / EDID integration Adding support for dynamic resolution switching and HDP and EDID commit a192fa8f272c113996a65bca4a68fa328f2fb4f4 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Aug 18 13:39:49 2010 -0700 frameworks/base: Call open only user says HDMI ON HDMI Clock remains ON when fb1 is opened from HDMI Daemon so call open fb1 only when user sets HDMI ON. commit db05d0df83e568e31b273e1f667539a02156fcbb Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Thu Jul 15 18:18:28 2010 -0700 frameworks/base: Add HPD support Add HPD support to HDMI daemon. commit 25f7beb6a82aff11f0cc2ed9850e40278820c32c Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 1 16:56:22 2010 -0700 frameworks/base: Add HDMIService for 7x30 target Add HDMI deamon which communicates with HDMI driver. Add HDMI service to communicate with HDMI deamon and send intent to applications when HDMI connected and disconnected. Change-Id: I416ccb87dd356a08299c3180275aa53a4fe7e412 Conflicts: libs/surfaceflinger_client/ISurfaceComposer.cpp Typo fix Change-Id: I70e22fd74eab7b9ee2d3f33e97b8256c03cce2c1
* surfaceflinger: Send the alpha value to HWCJeykumar Sankaran2011-12-201-0/+10
| | | | | | | | | C2D composition can handle fade cases. Don't skip layers in fade case if C2D composition is used. Send the alpha value of the layer to the HWC Change-Id: I2751bcb175679b063617102cecda874bc94ad5cf CRs-fixed: 288257
* Merge branch 'ics-mr1' of ↵Steve Kondik2011-12-161-16/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into aosp Conflicts: core/res/res/values/strings.xml policy/src/com/android/internal/policy/impl/GlobalActions.java services/java/com/android/server/WifiService.java services/sensorservice/SensorDevice.cpp telephony/java/com/android/internal/telephony/RIL.java Change-Id: I89ec56d5ff282a2eb879ca40fb6d74ebcf752837
| * rework a bit how we manage EGL extensionsMathias Agopian2011-11-141-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | - don't advertise extensions that are not supported by any implementation - remove EGL_ANDROID_swap_rectangle which is not implemented by anybody and confuses people - add some comments about mandatory extensions Bug: 5428001 Change-Id: Id8dc48116ac1d1eb79ec9ef55d03e29d4257c1f3
| * workaround to set the WM refresh rate to 48 Hz for tuna devices onlyMathias Agopian2011-11-041-0/+11
| | | | | | | | | | | | | | this is TEMPORARY until we can do this properly. Bug: 5572464 Change-Id: I6537706d636a83a4a50e2900d6b829dd89b6f245
* | graphics: Add directives for compatibility with older EGL blobsRicardo Cerqueira2011-12-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Define MISSING_EGL_EXTERNAL_IMAGE for EGL libraries without GL_OES_GLES_image_external - Define MISSING_GRALLOC_BUFFERS for gralloc HALS without the 0x800 (USAGE_HW_COMPOSER) usage - Define MISSING_EGL_PIXEL_FORMAT_YV12 for libraries who don't recognize the Android YV12 colorspace - Define FORCE_EGL_CONFIG=<value> for blobs which mis-identify the usable EGL configuration (pick the value from a CM7 log) A typical GB library set will need COMMON_GLOBAL_CFLAGS += -DMISSING_EGL_EXTERNAL_IMAGE -DMISSING_EGL_PIXEL_FORMAT_YV12 -DMISSING_GRALLOC_BUFFERS Change-Id: I85ae813c604d3d2fc41a291c9cb13d1ecd35368f
* | Set the WM refresh rate to 60 Hz for tuna devices only DOMathias Agopian2011-11-091-0/+11
|/ | | | | | | | NOT MERGE This approach is TEMPORARY until we can do this properly. Change-Id: I81a8f852df501b2faccffdae7cac954855a6c98f
* Add a h/w composer API to allow the HAL to trigger a redrawMathias Agopian2011-08-011-2/+3
| | | | | | | | This is useful in various situations, for instance if the HAL wants to change its compositing strategy. Bug: 4488017 Change-Id: I5afc14e5917c6db7926d7417d48677d5aba50caa
* Fix EGLUtils::selectConfigForPixelFormat()Mathias Agopian2011-07-081-6/+39
| | | | | | | | | | | | | | | - renderscript now calls EGL directly instead of relying on this function - surfaceflinger also does its own EGLConfig selection - selectConfigForPixelFormat stays for legacy reason (many tests use it) but it now only tries to match the alpha channel of the format rather than the format itself. this will allow implementations who don't support the exact formats defined in the HAL to work properly. Bug: 4998223 Change-Id: Ic664dfc14d5072a514b6f77a115d1521bfc1578f
* don't kill surfaceflinger when system process diesMathias Agopian2011-07-011-0/+5
| | | | Change-Id: I2d3ed87b590f9ccea3fa4af41d92911de070b315
* fix memory corruption when retriving GL_MAX_VIEWPORT_DIMSMathias Agopian2011-04-181-3/+7
| | | | Change-Id: I2e0b1eac6dbc6a4ecbbaf31013aa02cf2369fce2
* remove support for PUSH_BUFFER surfaces and overlaysMathias Agopian2010-12-081-8/+0
| | | | | | | the same functionality is now supported through the h/w composer HAL, and YUV support in the GPU. Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
* surfaceflinger: add support for gralloc dump hooksErik Gilling2010-12-081-0/+5
| | | | Change-Id: Ib6f539ed0132b70d040d653c03d52cc04249ac3c
* am fb31036f: am 583fefc8: Merge "Use the context_priority extension when ↵Mathias Agopian2010-10-211-2/+12
|\ | | | | | | | | | | | | | | | | present." into gingerbread Merge commit 'fb31036fd844444c395a2ae9c97439eec9f774e4' * commit 'fb31036fd844444c395a2ae9c97439eec9f774e4': Use the context_priority extension when present.
| * Use the context_priority extension when present.Mathias Agopian2010-10-111-2/+12
| | | | | | | | Change-Id: I12eadf1e32d576de5d811fba44afa73263e13eef
* | resolved conflicts for merge of 48a86240 to masterMathias Agopian2010-09-151-0/+4
|\ \ | |/ | | | | Change-Id: I2305fef9f4dd46183337217d822df3c675b6b6e5
| * Add logging of various important graphics eventsMathias Agopian2010-09-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are 16 events logged in the event log: SF_APP_DEQUEUE_BEFORE SF_APP_DEQUEUE_AFTER SF_APP_LOCK_BEFORE SF_APP_LOCK_AFTER SF_APP_QUEUE SF_REPAINT SF_COMPOSITION_COMPLETE SF_UNLOCK_CLIENTS SF_SWAP_BUFFERS SF_REPAINT_DONE SF_FB_POST_BEFORE SF_FB_POST_AFTER SF_FB_DEQUEUE_BEFORE SF_FB_DEQUEUE_AFTER SF_FB_LOCK_BEFORE SF_FB_LOCK_AFTER all events log the buffer conserned and a timestamp in microseconds. by default the logging is not enabled, to turn it on: adb shell service call SurfaceFlinger 1006 i31 1 adb shell setprop debug.graphic_log 1 The effect is immediate in SurfaceFlinger, but applications need to be restarted. Change-Id: Ifc2e31f7aed072d9a7dede20ff2ce59231edbec1
| * revert hwcomposer HAL changes. DO NOT MERGE.Mathias Agopian2010-08-171-19/+3
| | | | | | | | | | | | | | | | This reverts commit: 94364b91a2894bf037b8beb027132fbb812e1434 f8e705dea48f77f1c2532fdbadd4997dd1851af0 b59beb5ca68d0228f60dda60d85e2d0226b33215 e0d5f5bcf5a8b26f4ad75f549cbf380b2c9faf20
* | surfaceflinger: give hwcomposer a chance to release buffersAntti Hatala2010-09-091-0/+3
|/ | | | Change-Id: I605fa779702022865dd58df3b36f37c2644ade36
* call into hwcomposer HAL when presentMathias Agopian2010-08-111-3/+19
| | | | Change-Id: I70f31c69a9436a43860e78977442863ecba6d27b
* move native services under services/Mathias Agopian2010-07-141-0/+336
moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8