| Index: dm/DMGpuSupport.h
|
| diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h
|
| index 46896b43217f91b623a494b55f437dfa510d03bf..298468509cf4113832ecf228045f12a20bed86c3 100644
|
| --- a/dm/DMGpuSupport.h
|
| +++ b/dm/DMGpuSupport.h
|
| @@ -19,9 +19,10 @@ static const bool kGPUDisabled = false;
|
|
|
| static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory,
|
| GrContextFactory::GLContextType type,
|
| + GrGLStandard api,
|
| SkImageInfo info,
|
| int samples) {
|
| - return SkSurface::NewRenderTarget(grFactory->get(type), info, samples);
|
| + return SkSurface::NewRenderTarget(grFactory->get(type, api), info, samples);
|
| }
|
|
|
| } // namespace DM
|
| @@ -30,6 +31,12 @@ static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory,
|
|
|
| // Ganesh is not available. Fake it.
|
|
|
| +enum GrGLStandard {
|
| + kNone_GrGLStandard,
|
| + kGL_GrGLStandard,
|
| + kGLES_GrGLStandard
|
| +};
|
| +
|
| class GrContextFactory {
|
| public:
|
| typedef int GLContextType;
|
| @@ -48,6 +55,7 @@ static const bool kGPUDisabled = true;
|
|
|
| static inline SkSurface* NewGpuSurface(GrContextFactory*,
|
| GrContextFactory::GLContextType,
|
| + GrGLStandard,
|
| SkImageInfo,
|
| int) {
|
| return NULL;
|
|
|