Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case HWC_DISPLAY_PRIMARY:
- ALOGD("%s: %s display: HWC_DISPLAY_PRIMARY", __FUNCTION__,
- blank==1 ? "Blanking":"Unblanking");
- if(blank) {
- // guhl disable vsync here
- int vsync_enable;
- vsync_enable = ctx->vstate.enable;
- ALOGD ("GUHL: VSYNC vsync_enable = %d", vsync_enable);
- int enable;
- enable = false;
- if(vsync_enable){
- ret = hwc_vsync_control(ctx, dpy, enable);
- if(ret == 0) {
- ctx->vstate.enable = !!enable;
- pthread_cond_signal(&ctx->vstate.cond);
- }
- }
- ALOGD ("GUHL: VSYNC state changed to %s", (enable)?"ENABLED":"DISABLED");
- // guhl end
- ret = ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK,FB_BLANK_POWERDOWN);
Advertisement
Add Comment
Please, Sign In to add comment