Just drew a picture to show the current library APIs, V1 and V2 APIs, to help 
you understand my point.

[cid:image001.png@01D0D37C.E78C2030]



-----Original Message-----
From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ni, Ruiyu
Sent: Monday, August 10, 2015 11:10 AM
To: Justen, Jordan L <jordan.l.jus...@intel.com>; Laszlo Ersek 
<ler...@redhat.com>
Cc: edk2-devel@lists.01.org
Subject: [edk2] Library refinement: OptionRomPkg/BltLib



Jordan and Laszlo,

I reviewed the OptionRomPkg/BltLib again and would like to discuss with you 
about the potential API refinement.

I attached two versions of the refined BltLib.h.



The common part of the two versions is:



1.      BltLibGetSizes() is removed.



Because the size information is actually passed from the library consumer to 
the library. Caller do not need to get the information from the library 
interface.



2.      BltLibBufferToVideoEx and BltLibVideoToBltBufferEx are removed and the 
accordingly non-Ex version of APIs will be used for *Ex operation.

Just for reducing the library APIs and avoid the different APIs have overlapped 
functionality.



3.      BltLibGopBlt() is removed



Same reason as the above #2.



BltLib2.h contains another change.



4.      BltLibConfigure() is removed and the frame buffer information will be 
passed through the four BltLib* APIs.



Because it can remove the restriction to allow the library can be re-entry.



What's your thoughts about this?



Regards,

Ray


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to