Add protected status to SkSurfaceCharacterization
Change-Id: I27bd051c1fce0239faff7fc073eaf82976fb63ae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225940
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index da219a1..a1e3eba 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -394,11 +394,10 @@
return GrBackendTexture();
}
- // TODO (PROT-CHAR): pass in protection status once added to characterization
GrBackendTexture result = this->createBackendTexture(c.width(), c.height(), format,
GrMipMapped(c.isMipMapped()),
GrRenderable::kYes,
- GrProtected::kNo);
+ c.isProtected());
SkASSERT(c.isCompatible(result));
return result;
}
@@ -434,11 +433,10 @@
return GrBackendTexture();
}
- // TODO (PROT-CHAR): pass in protection status once added to characterization
GrBackendTexture result = this->createBackendTexture(c.width(), c.height(), format, color,
GrMipMapped(c.isMipMapped()),
GrRenderable::kYes,
- GrProtected::kNo);
+ c.isProtected());
SkASSERT(c.isCompatible(result));
return result;
}