Make SkSurfaceProps non-optional for SDCs and SkSpecialImages
This ensures we don't lose the original SkSurfaceProps when creating
image filters, etc.
Bug: skia:11396
Change-Id: I6b412361c1005138278a1396faa7f7e069ec7eb2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/397291
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/tests/ProgramsTest.cpp b/tests/ProgramsTest.cpp
index 19305f1..98cf7d9 100644
--- a/tests/ProgramsTest.cpp
+++ b/tests/ProgramsTest.cpp
@@ -155,8 +155,8 @@
return GrSurfaceDrawContext::Make(
rContext, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact,
- {kRenderTargetWidth, kRenderTargetHeight}, sampleCnt, GrMipmapped::kNo,
- GrProtected::kNo, origin);
+ {kRenderTargetWidth, kRenderTargetHeight}, SkSurfaceProps(), sampleCnt,
+ GrMipmapped::kNo, GrProtected::kNo, origin);
}
#if GR_TEST_UTILS
@@ -302,7 +302,7 @@
// Validate that GrFPs work correctly without an input.
auto surfaceDrawContext = GrSurfaceDrawContext::Make(
direct, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact,
- {kRenderTargetWidth, kRenderTargetHeight});
+ {kRenderTargetWidth, kRenderTargetHeight}, SkSurfaceProps());
if (!surfaceDrawContext) {
SkDebugf("Could not allocate a surfaceDrawContext");
return false;