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/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp
index 26fab1f..3dcf194 100644
--- a/tests/ResourceCacheTest.cpp
+++ b/tests/ResourceCacheTest.cpp
@@ -209,10 +209,10 @@
static const int kH = 100;
backendTextures[0] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH,
- kRGBA_8888_GrPixelConfig,
+ GrColorType::kRGBA_8888,
false, GrMipMapped::kNo);
backendTextures[1] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH,
- kRGBA_8888_GrPixelConfig,
+ GrColorType::kRGBA_8888,
false, GrMipMapped::kNo);
REPORTER_ASSERT(reporter, backendTextures[0].isValid());
REPORTER_ASSERT(reporter, backendTextures[1].isValid());