Bug 892182 - Fallback on FB rendering on HWC 1.0, r=vlad

This commit is contained in:
Michael Wu 2013-07-11 02:14:35 -04:00
parent 0079079e7a
commit 76723da48a

View File

@ -63,7 +63,13 @@ GonkDisplayJB::GonkDisplayJB()
HWC_HARDWARE_COMPOSER, strerror(-err));
}
if (!err) {
/* Fallback on the FB rendering path instead of trying to support HWC 1.0 */
if (!err && mHwc->common.version == HWC_DEVICE_API_VERSION_1_0) {
hwc_close_1(mHwc);
mHwc = nullptr;
}
if (!err && mHwc) {
if (mFBDevice) {
framebuffer_close(mFBDevice);
mFBDevice = nullptr;