[viewer] Tear down any GPU resources on a resize.

On GL, and possibly other backends, we reset the context on a resize,
so we need to tear down any GPU resources and rebuild them for the
next draw.

Bug: b/301949729
Change-Id: If5e5b8af48b937e63c8ee68b1b2ff5b84193a67a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/864456
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
1 file changed