[graphite] Add conditional context to UploadInstance
The ConditionalUploadContext, if set, is used to determine whether an
upload needs to occur upon Recording playback. Clients will need to
create their own subclasses to store the necessary data and override
the needsUpload() method to do this check.
Bug: b/246953695
Change-Id: I6c1bbff8880f98c27406edf06ba40a05b7338517
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/616776
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
8 files changed