From b89602d90074c274ce7fce25050d6d3a857aefc6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 2 Feb 2019 19:19:03 +0900 Subject: [PATCH] restorable: Add more comments --- internal/restorable/image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 30d605796..c83beaa50 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -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()