Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 1fe9228fe4b858e9788669b8a282a264f3cb10f2..6c596156fe81f00312c32b4036270ea103006964 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -1141,6 +1141,9 @@ const SkSurfaceProps gProps = SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_Ini |
DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); |
+ if (NULL == context) { |
+ return; |
+ } |
SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
SkSurface::kNo_Budgeted, |
SkImageInfo::MakeN32Premul(100, 100), |
@@ -1151,6 +1154,9 @@ DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { |
DEF_GPUTEST(HugeBlurImageFilterGPU, reporter, factory) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); |
+ if (NULL == context) { |
+ return; |
+ } |
SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
SkSurface::kNo_Budgeted, |
SkImageInfo::MakeN32Premul(100, 100), |
@@ -1161,6 +1167,9 @@ DEF_GPUTEST(HugeBlurImageFilterGPU, reporter, factory) { |
DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); |
+ if (NULL == context) { |
+ return; |
+ } |
SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
SkSurface::kNo_Budgeted, |
SkImageInfo::MakeN32Premul(1, 1), |
@@ -1171,6 +1180,9 @@ DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) { |
DEF_GPUTEST(TestNegativeBlurSigmaGPU, reporter, factory) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); |
+ if (NULL == context) { |
+ return; |
+ } |
SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
SkSurface::kNo_Budgeted, |
SkImageInfo::MakeN32Premul(1, 1), |