diff options
-rw-r--r-- | tests/SurfaceTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 59e565bba0..95c76cbbe1 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -35,8 +35,12 @@ static SkSurface* createSurface(SurfaceType surfaceType, GrContext* context) { case kRaster_SurfaceType: return SkSurface::NewRaster(imageSpec); case kGpu_SurfaceType: +#if SK_SUPPORT_GPU SkASSERT(NULL != context); return SkSurface::NewRenderTarget(context, imageSpec); +#else + SkASSERT(0); +#endif case kPicture_SurfaceType: return SkSurface::NewPicture(10, 10); } |