diff options
Diffstat (limited to 'tools/gpu/gl/GLTestContext.cpp')
-rw-r--r-- | tools/gpu/gl/GLTestContext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gpu/gl/GLTestContext.cpp b/tools/gpu/gl/GLTestContext.cpp index abbb8a618c..91fa82ff9a 100644 --- a/tools/gpu/gl/GLTestContext.cpp +++ b/tools/gpu/gl/GLTestContext.cpp @@ -7,6 +7,7 @@ #include "GLTestContext.h" +#include "GrContext.h" #include "GpuTimer.h" #include "gl/GrGLUtil.h" @@ -286,4 +287,9 @@ GrGLint GLTestContext::createTextureRectangle(int width, int height, GrGLenum in externalFormat, externalType, data)); return id; } + +sk_sp<GrContext> GLTestContext::makeGrContext(const GrContextOptions& options) { + return GrContext::MakeGL(fGL.get(), options); +} + } // namespace sk_gpu_test |