From e42edcc8ef257d4c430344d6d208e994f20f9320 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 13 Dec 2017 11:50:22 -0500 Subject: Add stubbed out GrContext This CL mainly just: stores the GrContextOptions in GrContextThreadSafeProxy (so they can be passed on to a stubbed out GrContext) adds a method to create a stubbed out GrContext that has a GrStubGpu - the stubbed out GrContext isn't quite ready for prime time yet Change-Id: I31be6763640e406c5963e6f0714489ac358339e4 Reviewed-on: https://skia-review.googlesource.com/79601 Reviewed-by: Brian Salomon Commit-Queue: Robert Phillips --- tests/DeferredDisplayListTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/DeferredDisplayListTest.cpp') diff --git a/tests/DeferredDisplayListTest.cpp b/tests/DeferredDisplayListTest.cpp index fc9fbfed25..1d99d00c45 100644 --- a/tests/DeferredDisplayListTest.cpp +++ b/tests/DeferredDisplayListTest.cpp @@ -106,6 +106,10 @@ DEF_GPUTEST_FOR_ALL_CONTEXTS(SkSurfaceCharacterization, reporter, ctxInfo) { SkDeferredDisplayListRecorder r(c); SkCanvas* canvas = r.getCanvas(); + if (!canvas) { + return; + } + canvas->drawRect(SkRect::MakeXYWH(10, 10, 10, 10), SkPaint()); ddl = r.detach(); -- cgit v1.2.3