Merge "hwc: Support for reading FB format from driver"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
2ce22c9b76
@@ -836,6 +836,9 @@ int hwc_getDisplayAttributes(struct hwc_composer_device_1* dev, int disp,
|
||||
HWC_DISPLAY_DPI_X,
|
||||
HWC_DISPLAY_DPI_Y,
|
||||
HWC_DISPLAY_SECURE,
|
||||
#ifdef GET_FRAMEBUFFER_FORMAT_FROM_HWC
|
||||
HWC_DISPLAY_FBFORMAT,
|
||||
#endif
|
||||
HWC_DISPLAY_NO_ATTRIBUTE,
|
||||
};
|
||||
|
||||
@@ -886,6 +889,11 @@ int hwc_getDisplayAttributes(struct hwc_composer_device_1* dev, int disp,
|
||||
case HWC_DISPLAY_SECURE:
|
||||
values[i] = (int32_t) (ctx->dpyAttr[disp].secure);
|
||||
break;
|
||||
#ifdef GET_FRAMEBUFFER_FORMAT_FROM_HWC
|
||||
case HWC_DISPLAY_FBFORMAT:
|
||||
values[i] = ctx->dpyAttr[disp].fbformat;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
ALOGE("Unknown display attribute %d",
|
||||
attributes[i]);
|
||||
|
||||
Reference in New Issue
Block a user