[graphite] Update ProtectedSlide for Vulkan and Graphite
Vulkan doesn't allow unprotected work w/in a protected context so the unprotected images were removed
Graphite requires a Recorder so the code was abstracted to pass GrDirectContexts and Recorders everywhere.
Additionally, we no longer cache the created Protected Images bc of the problematic lifetimes of Contexts and Recorders w/in Viewer (i.e., they keep getting recreated and we can't ref them).
Bug: b/237108194
Change-Id: I64b14e47d2283e31430a04b498d789081977aabe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/789077
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Nicolette Prevost <nicolettep@google.com>
1 file changed