DM: remove unused function gc_resize
Change-Id: I82504374fed44f08d92910d0d34a02337d844fd0 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:
parent
d153bb8664
commit
e6360b9b7f
|
@ -37,24 +37,6 @@ gc_init(int width, int height, void *fbaddr)
|
|||
return gc;
|
||||
}
|
||||
|
||||
void
|
||||
gc_resize(struct gfx_ctx *gc, int width, int height)
|
||||
{
|
||||
struct gfx_ctx_image *gc_image;
|
||||
|
||||
gc_image = gc->gc_image;
|
||||
|
||||
gc_image->width = width;
|
||||
gc_image->height = height;
|
||||
if (!gc->raw) {
|
||||
gc_image->data = realloc(gc_image->data,
|
||||
width * height * sizeof(uint32_t));
|
||||
if (gc_image->data != NULL)
|
||||
memset(gc_image->data, 0, width * height *
|
||||
sizeof(uint32_t));
|
||||
}
|
||||
}
|
||||
|
||||
struct gfx_ctx_image *
|
||||
gc_get_image(struct gfx_ctx *gc)
|
||||
{
|
||||
|
|
|
@ -41,7 +41,6 @@ struct gfx_ctx_image {
|
|||
};
|
||||
|
||||
struct gfx_ctx *gc_init(int width, int height, void *fbaddr);
|
||||
void gc_resize(struct gfx_ctx *gc, int width, int height);
|
||||
struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc);
|
||||
|
||||
#endif /* _GC_H_ */
|
||||
|
|
Loading…
Reference in New Issue