Add rowBytes to createTestingOnlyBackendTexture

This is pulled out of:

https://skia-review.googlesource.com/c/skia/+/151983 (Test YUV images in DDL)

The YUV images seem to like to have row padding.

Change-Id: I517d2b63678beeafef88f86148fca15862176780
Reviewed-on: https://skia-review.googlesource.com/156367
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tests/GrTestingBackendTextureUploadTest.cpp b/tests/GrTestingBackendTextureUploadTest.cpp
index e4fec18..bfea1b6 100644
--- a/tests/GrTestingBackendTextureUploadTest.cpp
+++ b/tests/GrTestingBackendTextureUploadTest.cpp
@@ -38,9 +38,13 @@
     GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(srcBuffer,
                                                                        kWidth,
                                                                        kHeight,
-                                                                       config,
+                                                                       ct,
                                                                        renderTarget,
                                                                        mipMapped);
+    if (!backendTex.isValid()) {
+        return;
+    }
+
     sk_sp<GrTexture> wrappedTex;
     if (renderTarget) {
         wrappedTex = gpu->wrapRenderableBackendTexture(backendTex, 1,
@@ -67,7 +71,7 @@
 }
 
 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrTestingBackendTextureUploadTest, reporter, ctxInfo) {
-    for (auto colorType: {GrColorType::kRGBA_8888, GrColorType::kBGRA_8888}) {
+    for (auto colorType: { GrColorType::kRGBA_8888, GrColorType::kBGRA_8888 }) {
         for (bool renderable: {true, false}) {
             for (bool doDataUpload: {true, false}) {
                 testing_only_texture_test(reporter, ctxInfo.grContext(), colorType,