Loading services/surfaceflinger/DisplayHardware/HWComposer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,12 @@ HWComposer::HWComposer( loadFbHalModule(); loadHwcModule(); if (!hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1) && !mFbDev) { ALOGE("ERROR: failed to open framebuffer, aborting"); // FB mandatory on <= 1.0, give up abort(); } if (mHwc) { ALOGI("Using %s version %u.%u", HWC_HARDWARE_COMPOSER, (hwcApiVersion(mHwc) >> 24) & 0xff, Loading services/surfaceflinger/SurfaceFlinger.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,13 @@ bool SurfaceFlinger::threadLoop() { } void SurfaceFlinger::onVSyncReceived(int type, nsecs_t timestamp) { if (mEventThread == NULL) { // This is a temporary workaround for b/7145521. A non-null pointer // does not mean EventThread has finished initializing, so this // is not a correct fix. ALOGW("WARNING: EventThread not started, ignoring vsync"); return; } if (uint32_t(type) < DisplayDevice::NUM_DISPLAY_TYPES) { // we should only receive DisplayDevice::DisplayType from the vsync callback const wp<IBinder>& token(mDefaultDisplays[type]); Loading Loading
services/surfaceflinger/DisplayHardware/HWComposer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,12 @@ HWComposer::HWComposer( loadFbHalModule(); loadHwcModule(); if (!hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1) && !mFbDev) { ALOGE("ERROR: failed to open framebuffer, aborting"); // FB mandatory on <= 1.0, give up abort(); } if (mHwc) { ALOGI("Using %s version %u.%u", HWC_HARDWARE_COMPOSER, (hwcApiVersion(mHwc) >> 24) & 0xff, Loading
services/surfaceflinger/SurfaceFlinger.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,13 @@ bool SurfaceFlinger::threadLoop() { } void SurfaceFlinger::onVSyncReceived(int type, nsecs_t timestamp) { if (mEventThread == NULL) { // This is a temporary workaround for b/7145521. A non-null pointer // does not mean EventThread has finished initializing, so this // is not a correct fix. ALOGW("WARNING: EventThread not started, ignoring vsync"); return; } if (uint32_t(type) < DisplayDevice::NUM_DISPLAY_TYPES) { // we should only receive DisplayDevice::DisplayType from the vsync callback const wp<IBinder>& token(mDefaultDisplays[type]); Loading