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/GrContext.cpp b/src/gpu/GrContext.cpp
index f3ac376..877ca41 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -365,7 +365,8 @@
const GrBackendFormat& backendFormat,
const SkColor4f& color,
GrMipMapped mipMapped,
- GrRenderable renderable) {
+ GrRenderable renderable,
+ GrProtected isProtected) {
TRACE_EVENT0("skia.gpu", TRACE_FUNC);
if (!this->asDirectContext()) {
return GrBackendTexture();
@@ -381,14 +382,15 @@
return fGpu->createBackendTexture(width, height, backendFormat,
mipMapped, renderable,
- nullptr, 0, &color, GrProtected::kNo);
+ nullptr, 0, &color, isProtected);
}
GrBackendTexture GrContext::createBackendTexture(int width, int height,
SkColorType colorType,
const SkColor4f& color,
GrMipMapped mipMapped,
- GrRenderable renderable) {
+ GrRenderable renderable,
+ GrProtected isProtected) {
if (!this->asDirectContext()) {
return GrBackendTexture();
}
@@ -402,7 +404,8 @@
return GrBackendTexture();
}
- return this->createBackendTexture(width, height, format, color, mipMapped, renderable);
+ return this->createBackendTexture(width, height, format, color, mipMapped, renderable,
+ isProtected);
}
void GrContext::deleteBackendTexture(GrBackendTexture backendTex) {