Guest User

Untitled

a guest
Jul 21st, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. diff --git a/libhwcomposer/hwc_copybit.cpp b/libhwcomposer/hwc_copybit.cpp
  2. index 933c8e5..bdcda5f 100644
  3. --- a/libhwcomposer/hwc_copybit.cpp
  4. +++ b/libhwcomposer/hwc_copybit.cpp
  5. @@ -190,6 +190,10 @@ bool CopyBit::prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list,
  6. for (int i = ctx->listStats[dpy].numAppLayers-1; i >= 0 ; i--) {
  7. private_handle_t *hnd = (private_handle_t *)list->hwLayers[i].handle;
  8.  
  9. + fprintf(stderr, "%s: handle for layer: %d is NULL\n", __FUNCTION__, i);
  10. + if (hnd == NULL)
  11. + continue;
  12. +
  13. if((hnd->bufferType == BUFFER_TYPE_VIDEO) && (layerProp[i].mFlags & HWC_MDPCOMP))
  14. continue;
  15.  
  16. diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
  17. index 4d64fa2..dfbf694 100644
  18. --- a/libhwcomposer/hwc_mdpcomp.cpp
  19. +++ b/libhwcomposer/hwc_mdpcomp.cpp
  20. @@ -296,7 +296,7 @@ bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) {
  21. private_handle_t *hnd = (private_handle_t *)layer->handle;
  22.  
  23. if(!hnd) {
  24. - ALOGE("%s: layer handle is NULL", __FUNCTION__);
  25. + //ALOGE("%s: layer handle is NULL", __FUNCTION__);
  26. return false;
  27. }
  28.  
  29. @@ -863,7 +863,7 @@ bool MDPComp::programYUV(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
  30. return true;
  31. }
  32.  
  33. -int MDPComp::prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
  34. +int MDPComp::prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list) {//isvaliddimension
  35.  
  36. const int numLayers = ctx->listStats[mDpy].numAppLayers;
  37. int ret = 1;
Advertisement
Add Comment
Please, Sign In to add comment