restorable: Fix comments

This commit is contained in:
Hajime Hoshi 2018-12-27 03:11:56 +09:00
parent 4ba47eee32
commit 25581b2be8

View File

@ -63,7 +63,6 @@ var dummyImage *Image
func init() {
dummyImage = &Image{
image: graphicscommand.NewImage(16, 16),
volatile: false,
}
}
@ -90,7 +89,6 @@ func NewImage(width, height int, volatile bool) *Image {
func NewScreenFramebufferImage(width, height int) *Image {
i := &Image{
image: graphicscommand.NewScreenFramebufferImage(width, height),
volatile: false,
screen: true,
}
theImages.add(i)
@ -109,7 +107,7 @@ func (i *Image) BasePixelsForTesting() []byte {
// Pixels returns the image's pixel bytes.
//
// Pixels tries to read pixels from GPU if needed.
// It is assured that GPU is not accessed if only the image's ReplacePixels is called.
// It is assured that GPU is not accessed if the opration against the image is only ReplacePixels.
func (i *Image) Pixels() []byte {
i.readPixelsFromGPUIfNeeded()
return i.basePixels