Make GL & Vk backends create uninitialized backend textures
We want the non-color, non-pixel-data version of createBackendTexture to truly create uninitialized textures.
Change-Id: I08867508ea181b7ba3685638cc7a3ea11d527a24
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/218396
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tools/DDLPromiseImageHelper.cpp b/tools/DDLPromiseImageHelper.cpp
index 7479113..790699c 100644
--- a/tools/DDLPromiseImageHelper.cpp
+++ b/tools/DDLPromiseImageHelper.cpp
@@ -86,12 +86,12 @@
GrSRGBEncoded::kNo);
tex = gpu->createBackendTexture(pm.width(), pm.height(), format,
GrMipMapped::kNo, GrRenderable::kNo,
- pixels, 2 * pm.width());
+ pixels, 2 * pm.width(), nullptr);
} else {
tex = gpu->createTestingOnlyBackendTexture(
pm.width(), pm.height(), pm.colorType(),
GrMipMapped::kNo, GrRenderable::kNo,
- pm.addr(), pm.rowBytes());
+ pm.addr(), pm.rowBytes(), nullptr);
}
return tex;
}
@@ -128,7 +128,7 @@
callbackContext->setBackendTexture(gpu->createTestingOnlyBackendTexture(
bm.width(), bm.height(), bm.colorType(),
GrMipMapped::kNo, GrRenderable::kNo,
- bm.getPixels(), bm.rowBytes()));
+ bm.getPixels(), bm.rowBytes(), nullptr));
// The GMs sometimes request too large an image
//SkAssertResult(callbackContext->backendTexture().isValid());