Another speculative ASAN fix.

Add a GrContext nullptr check in SurfaceTest.

TBR=robertphillips@google.com

Review URL: https://codereview.chromium.org/1098993004
This commit is contained in:
senorblanco 2015-04-21 06:59:17 -07:00 committed by Commit bot
parent 33d73c39dd
commit 84bfd3958f

View File

@ -251,6 +251,9 @@ static void test_imagepeek(skiatest::Reporter* reporter, GrContextFactory* facto
GrContext* ctx = NULL;
#if SK_SUPPORT_GPU
ctx = factory->get(GrContextFactory::kNative_GLContextType);
if (!ctx) {
return;
}
#endif
for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {