skia2/tools/sk_app
Greg Daniel 427d8ebf30 Fix offscreen drawing when cleaning up vulkan viewer.
When using offscreen draws, we save the "previous" frame in fLastImage
in viewer. However this image holds a ref to the GrContext. When we
were destroying the vulkan context we thought we were destroying the
GrContext before the VkDevice but fLastImage was keeping it alive.

This changes makes sure to reset fLastImage when we are done with it.

Change-Id: Ib70e069a261f939217436a9f052d7565581cd230
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/320263
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
2020-09-28 19:41:03 +00:00
..
android Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
ios Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
mac Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
unix Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
win Add AMD allocator to D3D12 backend. 2020-09-23 21:22:52 +00:00
Application.h Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
CommandSet.cpp Include the SkTSort header only where it is used. 2020-07-14 14:19:06 +00:00
CommandSet.h tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
DawnWindowContext.cpp Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
DawnWindowContext.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
DisplayParams.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GLWindowContext.cpp Remove gendered language 2020-07-28 15:02:41 +00:00
GLWindowContext.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
MetalWindowContext.h Use LazyProxy to set up Metal swapchain. 2019-10-18 14:04:41 +00:00
MetalWindowContext.mm Fix MetalWindowContext::swapBuffers. 2020-08-14 16:22:48 +00:00
RasterWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
VulkanWindowContext.cpp Fix offscreen drawing when cleaning up vulkan viewer. 2020-09-28 19:41:03 +00:00
VulkanWindowContext.h Add image usage flags to GrVkImageInfo 2020-08-21 16:34:20 +00:00
Window.cpp Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
Window.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
WindowContext.cpp Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
WindowContext.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00