Pipe all SDC creation through the recording context
In the new GrSurfaceContext class hierarchy we can get either a v1 or v2 SFC/SDC depending on the context options setting.
Bug: skia:11837
Change-Id: Ia25bc10b58bbbaf65a484b323d9d0eee471bb7ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/435276
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp
index c210b5b..ad18d90 100644
--- a/tests/FloatingPointTextureTest.cpp
+++ b/tests/FloatingPointTextureTest.cpp
@@ -60,7 +60,7 @@
continue;
}
- auto sContext = GrSurfaceContext::Make(dContext, std::move(fpView), info.colorInfo());
+ auto sContext = dContext->priv().makeSC(std::move(fpView), info.colorInfo());
REPORTER_ASSERT(reporter, sContext);
GrPixmap readPixmap(info, readBuffer.begin(), info.minRowBytes());