blob: 14df8b22c622714c5a146dd5ae24dea1b3014a8e [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2010 Travis Geiselbrecht
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
#include <sys/types.h>
#include <gfx-common/gfx-common.h>
// surface setup
gfx_surface* gfx_create_surface(void* ptr, uint width, uint height, uint stride, gfx_format format,
uint32_t flags);
// utility routine to make a surface out of a display info
struct display_info;
gfx_surface* gfx_create_surface_from_display(struct display_info*);
zx_status_t gfx_init_surface_from_display(gfx_surface* surface, struct display_info*);
// utility routine to fill the display with a little moire pattern
void gfx_draw_pattern(void);