restorable: Add more comments

This commit is contained in:
Hajime Hoshi 2019-02-02 19:19:03 +09:00
parent 05d78b4232
commit b89602d900

View File

@ -190,6 +190,7 @@ func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
i.image.ReplacePixels(pixels, x, y, width, height)
// TODO: We wanted to skip copying pixels, but this can cause reading-pixels before the driver is initialized.
// For example, Pixels() is called at shareable package when enlarging the shareable images.
//
// if !IsRestoringEnabled() {
// i.makeStale()