all: remove the comments about restorable

This commit is contained in:
Hajime Hoshi 2024-01-13 19:58:28 +09:00
parent c404b448aa
commit 7f396f72de
2 changed files with 1 additions and 3 deletions

View File

@ -488,7 +488,7 @@ func TestLongImages(t *testing.T) {
} }
func TestDeallocateImmediately(t *testing.T) { func TestDeallocateImmediately(t *testing.T) {
// This tests restorable.Image.ClearPixels is called but WritePixels is not called. // This tests ClearPixels is called but WritePixels is not called.
img0 := atlas.NewImage(16, 16, atlas.ImageTypeRegular) img0 := atlas.NewImage(16, 16, atlas.ImageTypeRegular)
img0.EnsureIsolatedFromSourceForTesting(nil) img0.EnsureIsolatedFromSourceForTesting(nil)

View File

@ -27,8 +27,6 @@ type Image struct {
img *atlas.Image img *atlas.Image
width int width int
height int height int
// pixels is valid only when restorable.AlwaysReadPixelsFromGPU() returns true.
pixels []byte pixels []byte
} }