[graphite] One-time uploads can be discarded

This allows usage refs to be dropped from one-time uploads, and preps
the conditional upload system to be compatible with conditional tasks.

Constructor/factory parameters are switched from vectors to spans, and
list members are switched from vectors to TArray.

Bug: b/332681367
Bug: b/238767759
Change-Id: I7fe8bc8d967d9278d5bf7c9a38cfff153e6ce568
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/835996
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2 files changed