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:
parent
33d73c39dd
commit
84bfd3958f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user