Build fix for Surface Test on non-gpu builds
git-svn-id: http://skia.googlecode.com/svn/trunk@8513 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
af0583528c
commit
8bc9edce9e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user