cbgfx: remove load_bitmap
load_bitmap is no longer needed. BUG=none BRANCH=master TEST=Tested on Samus CQ-DEPEND=CL:305589 Change-Id: I4e598ade20a5d49850f9ad0f13681ea5d16cd8c7 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Original-Commit-Id: 125bbc98195cbb8378ba0e4c7fece85ffca4cdfa Original-Change-Id: I64d685f7a6367b03455ae2a206b9936613614a24 Original-Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/305517 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11930 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
20b7907041
commit
dcc63b6cb7
|
@ -149,20 +149,6 @@ static int cbgfx_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *load_bitmap(const char *name, size_t *size)
|
|
||||||
{
|
|
||||||
static struct cbfs_media media;
|
|
||||||
static int cbfs_media_initialized = 0;
|
|
||||||
if (!cbfs_media_initialized) {
|
|
||||||
if (init_default_cbfs_media(&media)) {
|
|
||||||
printf("Failed to initialize default media\n");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cbfs_media_initialized = 1;
|
|
||||||
return cbfs_get_file_content(&media, name, CBFS_TYPE_RAW, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
int draw_box(const struct rect *box, const struct rgb_color *rgb)
|
int draw_box(const struct rect *box, const struct rgb_color *rgb)
|
||||||
{
|
{
|
||||||
struct vector top_left;
|
struct vector top_left;
|
||||||
|
|
|
@ -73,18 +73,6 @@ struct rgb_color {
|
||||||
* y values increasing towards bottom of screen.
|
* y values increasing towards bottom of screen.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Load a bitmap file from cbfs
|
|
||||||
*
|
|
||||||
* Memory is allocated automatically and it's caller's responsibility to free it
|
|
||||||
*
|
|
||||||
* name: name of the bitmap file
|
|
||||||
* size: (OUT) size of the image
|
|
||||||
*
|
|
||||||
* return: pointer to the image data in memory or NULL on error
|
|
||||||
*/
|
|
||||||
void *load_bitmap(const char *name, size_t *size);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* draw a box filled with a color on screen
|
* draw a box filled with a color on screen
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue