Add GrProtected parameter to all createBackendTexture variants
Change-Id: I667bc730e321b579bef98f3d6003f7a7b29c9890
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/224957
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrContextPriv.cpp b/src/gpu/GrContextPriv.cpp
index 14504d5..5c135d6 100644
--- a/src/gpu/GrContextPriv.cpp
+++ b/src/gpu/GrContextPriv.cpp
@@ -380,7 +380,8 @@
#include "src/core/SkMipMap.h"
GrBackendTexture GrContextPriv::createBackendTexture(const SkPixmap srcData[], int numLevels,
- GrRenderable renderable) {
+ GrRenderable renderable,
+ GrProtected isProtected) {
if (!fContext->asDirectContext()) {
return {};
}
@@ -429,5 +430,5 @@
return gpu->createBackendTexture(baseWidth, baseHeight, backendFormat,
GrMipMapped::kNo, // TODO: use real mipmap setting here
renderable, srcData[0].addr(), srcData[0].rowBytes(),
- nullptr, GrProtected::kNo);
+ nullptr, isProtected);
}