BackendLink.NewSurface can return an error
This commit is contained in:
parent
b1c927732f
commit
641514c6d1
@ -18,7 +18,7 @@ type BackendLink interface {
|
||||
// NewCanvas creates a new blank canvas with the specified bounds.
|
||||
NewCanvas (image.Rectangle) canvas.Canvas
|
||||
// NewSurface creates a new surface with the specified bounds.
|
||||
NewSurface (image.Rectangle) SurfaceLink
|
||||
NewSurface (image.Rectangle) (SurfaceLink, error)
|
||||
}
|
||||
|
||||
// SurfaceLink wraps a Surface created by the backend implementation, allowing
|
||||
|
Loading…
Reference in New Issue
Block a user