зеркало из https://github.com/mozilla/gecko-dev.git
Bug 915487 - Error handling for GonkDisplayJB. r=mwu
This commit is contained in:
Родитель
8457407669
Коммит
550cdda790
|
@ -50,7 +50,7 @@ GonkDisplayJB::GonkDisplayJB()
|
|||
ALOGW_IF(err, "could not open framebuffer");
|
||||
}
|
||||
|
||||
if (!err) {
|
||||
if (!err && mFBDevice) {
|
||||
mWidth = mFBDevice->width;
|
||||
mHeight = mFBDevice->height;
|
||||
xdpi = mFBDevice->xdpi;
|
||||
|
@ -116,7 +116,10 @@ GonkDisplayJB::GonkDisplayJB()
|
|||
|
||||
status_t error;
|
||||
mBootAnimBuffer = mAlloc->createGraphicBuffer(mWidth, mHeight, surfaceformat, GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER, &error);
|
||||
if (error == NO_ERROR && mBootAnimBuffer.get())
|
||||
StartBootAnimation();
|
||||
else
|
||||
ALOGW("Couldn't show bootanimation (%s)", strerror(-error));
|
||||
}
|
||||
|
||||
GonkDisplayJB::~GonkDisplayJB()
|
||||
|
|
Загрузка…
Ссылка в новой задаче