From 5e8f1db9d4a483678c376a0a276b8f774f91d0ac Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Fri, 9 May 2014 20:40:15 +0800 Subject: lib: Add VbExDisplaySetDimension. For displaying GBB images on panels with different dimension, X86 has VESA mode and VBIOS to scale automatically but ARM does not have such mode settings. If we install a larger panel on ARM platforms, current firmware will render the screens in left-top corner and leave black borders in right-bottom corner. To render images correctly, vboot library has to send out the expected dimension (similar to the VESA mode) so display provider can scale or shift images. BUG=chrome-os-partner:28494 TEST=emerge-nyan vboot_reference CQ-DEPEND=CL:199051,CL:199045 BRANCH=none Change-Id: I6d60f755ca2bcbd3135631d7624a8a4a4cff68b1 Reviewed-on: https://chromium-review.googlesource.com/199043 Reviewed-by: Bill Richardson Tested-by: Hung-Te Lin Commit-Queue: Hung-Te Lin --- firmware/stub/vboot_api_stub.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/stub') diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c index 913cac15..b11a7fe1 100644 --- a/firmware/stub/vboot_api_stub.c +++ b/firmware/stub/vboot_api_stub.c @@ -36,6 +36,11 @@ VbError_t VbExDisplayBacklight(uint8_t enable) return VBERROR_SUCCESS; } +VbError_t VbExDisplaySetDimension(uint32_t width, uint32_t height) +{ + return VBERROR_SUCCESS; +} + VbError_t VbExDisplayScreen(uint32_t screen_type) { return VBERROR_SUCCESS; -- cgit v1.2.1