aboutsummaryrefslogtreecommitdiff
path: root/tests/ProcessorTest.cpp
diff options
context:
space:
mode:
authorRobert Phillips <robertphillips@google.com>2021-08-02 11:14:38 -0400
committerSkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com>2021-08-02 16:04:52 +0000
commit33bf2b56f9cfa73ec96a55f426c6ffc252fc923c (patch)
tree8fb05981c1dd75c5e1d257142f7be5f29ddd257e /tests/ProcessorTest.cpp
parent295788554871145a64b2cc0bf925bec8b32b0fcc (diff)
downloadskia-33bf2b56f9cfa73ec96a55f426c6ffc252fc923c.tar.gz
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>
Diffstat (limited to 'tests/ProcessorTest.cpp')
-rw-r--r--tests/ProcessorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp
index 1bc9bb46f6..a6f8188d3f 100644
--- a/tests/ProcessorTest.cpp
+++ b/tests/ProcessorTest.cpp
@@ -393,7 +393,7 @@ bool log_texture_view(GrDirectContext* dContext, GrSurfaceProxyView src, SkStrin
SkImageInfo ii = SkImageInfo::Make(src.proxy()->dimensions(), kRGBA_8888_SkColorType,
kLogAlphaType);
- auto sContext = GrSurfaceContext::Make(dContext, std::move(src), ii.colorInfo());
+ auto sContext = dContext->priv().makeSC(std::move(src), ii.colorInfo());
SkBitmap bm;
SkAssertResult(bm.tryAllocPixels(ii));
SkAssertResult(sContext->readPixels(dContext, bm.pixmap(), {0, 0}));