"Fix" another crash in DeferredCanvasTest on valgrind bot

https://codereview.chromium.org/71463003/



git-svn-id: http://skia.googlecode.com/svn/trunk@12265 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-11-13 14:26:52 +00:00
parent c4330cac79
commit e293005bd4

View File

@ -775,6 +775,9 @@ static void TestDeferredCanvasSetSurface(skiatest::Reporter* reporter, GrContext
#if SK_SUPPORT_GPU
if (useGpu) {
GrContext* context = factory->get(GrContextFactory::kNative_GLContextType);
if (NULL == context) {
return;
}
surface = SkSurface::NewRenderTarget(context, imageSpec);
alternateSurface = SkSurface::NewRenderTarget(context, imageSpec);
} else {