[Graphite] Don't set DawnTexture label if we only have a view.

We can reland, https://skia-review.googlesource.com/c/skia/+/852616
after this change lands.

We don't currently try to set labels on Views right now, but we
could consider doing that in the future. But to keep things working as
is, I just don't set a backend label if we have no texture.

Bug: b/308986480
Change-Id: Ied94358b9662c8394179901057f5759251c3dd4c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/853496
Reviewed-by: Arman Uguray <armansito@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
1 file changed