diff options
Diffstat (limited to 'src/gpu/gl/GrGLContext.cpp')
-rw-r--r-- | src/gpu/gl/GrGLContext.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGLContext.cpp b/src/gpu/gl/GrGLContext.cpp index 335986508d..6f23eca847 100644 --- a/src/gpu/gl/GrGLContext.cpp +++ b/src/gpu/gl/GrGLContext.cpp @@ -52,9 +52,8 @@ GrGLContext* GrGLContext::Create(const GrGLInterface* interface, const GrContext args.fRenderer = GrGLGetRendererFromString(renderer); - args.fIsMesa = GrGLIsMesaFromVersionString(ver); - - args.fIsChromium = GrGLIsChromiumFromRendererString(renderer); + GrGLGetDriverInfo(interface->fStandard, args.fVendor, renderer, ver, + &args.fDriver, &args.fDriverVersion); args.fContextOptions = &options; @@ -67,8 +66,8 @@ GrGLContextInfo::GrGLContextInfo(const ConstructorArgs& args) { fGLSLGeneration = args.fGLSLGeneration; fVendor = args.fVendor; fRenderer = args.fRenderer; - fIsMesa = args.fIsMesa; - fIsChromium = args.fIsChromium; + fDriver = args.fDriver; + fDriverVersion = args.fDriverVersion; fGLCaps.reset(SkNEW_ARGS(GrGLCaps, (*args.fContextOptions, *this, fInterface))); } |