diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index ea7eb1e..4e8d14f 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -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; diff --git a/libqcomui/qcom_ui.h b/libqcomui/qcom_ui.h index f78650c..16923b9 100644 --- a/libqcomui/qcom_ui.h +++ b/libqcomui/qcom_ui.h @@ -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