| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 6d7a85fc292e657df0715a9dfd7f62bcc3b71c13..2503dc35cec207602df6e50d9f66a518d108f2d1 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -790,11 +790,13 @@
|
|
|
| GPUSink::GPUSink(GrContextFactory::GLContextType ct,
|
| GrContextFactory::GLContextOptions options,
|
| + GrGLStandard gpuAPI,
|
| int samples,
|
| bool diText,
|
| bool threaded)
|
| : fContextType(ct)
|
| , fContextOptions(options)
|
| + , fGpuAPI(gpuAPI)
|
| , fSampleCount(samples)
|
| , fUseDIText(diText)
|
| , fThreaded(threaded) {}
|
| @@ -828,7 +830,8 @@
|
| const SkImageInfo info =
|
| SkImageInfo::Make(size.width(), size.height(), kN32_SkColorType, kPremul_SkAlphaType);
|
| SkAutoTUnref<SkSurface> surface(
|
| - NewGpuSurface(&factory, fContextType, fContextOptions, info, fSampleCount, fUseDIText));
|
| + NewGpuSurface(&factory, fContextType, fContextOptions, fGpuAPI, info, fSampleCount,
|
| + fUseDIText));
|
| if (!surface) {
|
| return "Could not create a surface.";
|
| }
|
|
|