hwc: Allow SurfaceFlinger to force composition.

Expose API for SurfaceFlinger to set force composition. The SurfaceFlinger
can set the force composition flag for avoiding skip composition.

CRs-fixed: 374830
(cherry picked from commit a3c5794b27d2bf7fbc539e3f13a8daaf74724d94)

Conflicts:

	libhwcomposer/a-family/hwcomposer.cpp
	libhwcomposer/hwcomposer.cpp
	libqcomui/qcom_ui.h

Change-Id: I277484ea5ab4ef8d2bccdd480785356d02f6efa8
This commit is contained in:
Paras Morabia 2012-07-06 08:26:40 +05:30 committed by milaq
parent bb1ae5d198
commit 00e6cb0616
2 changed files with 5 additions and 0 deletions

View File

@ -962,6 +962,10 @@ static void hwc_perform(hwc_composer_device_t *dev, int event, int value) {
hwc_enableHDMIOutput(dev, value);
break;
#endif
case EVENT_FORCE_COMPOSITION:
ctx->forceComposition = value;
break;
default:
LOGE("In hwc:perform UNKNOWN EVENT = %d!!", event);
break;

View File

@ -128,6 +128,7 @@ enum {
EVENT_CLOSE_SECURE_END, // End of secure session teardown config
EVENT_RESET_POSTBUFFER, // Reset post framebuffer mutex
EVENT_WAIT_POSTBUFFER, // Wait until post framebuffer returns
EVENT_FORCE_COMPOSITION, // On/Off event for avoiding skip composition
};
// Video information sent to framebuffer HAl