DM: remove unused function gc_set_fbaddr

Change-Id: I005edc5f69fcd3b4969c7c7d75f633d2219acbe5
Tracked-On: #3123
Signed-off-by: Ying Liu <ying2.liu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
yliu79 2019-05-22 10:25:53 -07:00 committed by ACRN System Integration
parent 475c51e53a
commit d153bb8664
2 changed files with 0 additions and 10 deletions

View File

@ -37,15 +37,6 @@ gc_init(int width, int height, void *fbaddr)
return gc; return gc;
} }
void
gc_set_fbaddr(struct gfx_ctx *gc, void *fbaddr)
{
gc->raw = 1;
if (gc->gc_image->data && gc->gc_image->data != fbaddr)
free(gc->gc_image->data);
gc->gc_image->data = fbaddr;
}
void void
gc_resize(struct gfx_ctx *gc, int width, int height) gc_resize(struct gfx_ctx *gc, int width, int height)
{ {

View File

@ -41,7 +41,6 @@ struct gfx_ctx_image {
}; };
struct gfx_ctx *gc_init(int width, int height, void *fbaddr); struct gfx_ctx *gc_init(int width, int height, void *fbaddr);
void gc_set_fbaddr(struct gfx_ctx *gc, void *fbaddr);
void gc_resize(struct gfx_ctx *gc, int width, int height); void gc_resize(struct gfx_ctx *gc, int width, int height);
struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc); struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc);