[graphite] Fix caching of texture index pairs for DrawPass creation.

During DrawPass creation, I was storing texture cache index pairs in
a std::vector, which didn't de-duplicate matching pairs. This broke
batching. Changing to use a PipelineDataCache handles the
de-duplication and restores batching.

Bug: skia:13118
Bug: b/238791068
Change-Id: I282a68ccba4c49fcb2c474d88fd302690fcf7727
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/561223
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2 files changed