| commit | 5fa42d1621c74d206fe746ec2c5b7962a97cf6d1 | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 12 17:33:02 2013 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 12 17:33:02 2013 +0000 |
| tree | cf85acb3a57b46bd05a629e3edcdcadffab0c76b | |
| parent | cac8d01eabd05d11365f56b6af3f30bccb173487 [diff] [blame] |
"Fix" another crash on valgrind bot https://codereview.chromium.org/70463002/ git-svn-id: http://skia.googlecode.com/svn/trunk@12248 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp index a9679a3..bcee382 100644 --- a/tests/DeferredCanvasTest.cpp +++ b/tests/DeferredCanvasTest.cpp
@@ -703,6 +703,10 @@ #if SK_SUPPORT_GPU if (useGpu) { GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); + if (NULL == context) { + return; + } + surface = SkSurface::NewRenderTarget(context, imageSpec); } else { surface = SkSurface::NewRaster(imageSpec);