Guest User

Untitled

a guest
Nov 19th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. case HWC_DISPLAY_PRIMARY:
  2. ALOGD("%s: %s display: HWC_DISPLAY_PRIMARY", __FUNCTION__,
  3. blank==1 ? "Blanking":"Unblanking");
  4. if(blank) {
  5. // guhl disable vsync here
  6. int vsync_enable;
  7. vsync_enable = ctx->vstate.enable;
  8. ALOGD ("GUHL: VSYNC vsync_enable = %d", vsync_enable);
  9. int enable;
  10. enable = false;
  11. if(vsync_enable){
  12. ret = hwc_vsync_control(ctx, dpy, enable);
  13. if(ret == 0) {
  14. ctx->vstate.enable = !!enable;
  15. pthread_cond_signal(&ctx->vstate.cond);
  16. }
  17. }
  18. ALOGD ("GUHL: VSYNC state changed to %s", (enable)?"ENABLED":"DISABLED");
  19. // guhl end
  20. ret = ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK,FB_BLANK_POWERDOWN);
Advertisement
Add Comment
Please, Sign In to add comment