diff options
author | Robert Phillips <robertphillips@google.com> | 2017-12-13 11:50:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 18:24:30 +0000 |
commit | e42edcc8ef257d4c430344d6d208e994f20f9320 (patch) | |
tree | 6c894e1995a7b03a74619b185998936dd6f62f9c /tests/DeferredDisplayListTest.cpp | |
parent | b9042d206ab8762429c61160383094360fb04c7a (diff) |
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 <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/DeferredDisplayListTest.cpp')
-rw-r--r-- | tests/DeferredDisplayListTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |