mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 01:01:52 +00:00
Bug 892182 - Fallback on FB rendering on HWC 1.0, r=vlad
This commit is contained in:
parent
0079079e7a
commit
76723da48a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user