Lines Matching defs:args
18 ConstructorArgs args;
19 args.fInterface = interface;
33 args.fGLVersion = GrGLGetVersionFromString(ver);
34 if (GR_GL_INVALID_VER == args.fGLVersion) {
38 if (!GrGLGetGLSLGeneration(interface, &args.fGLSLGeneration)) {
42 args.fVendor = GrGLGetVendor(interface);
44 args.fRenderer = GrGLGetRendererFromString(renderer);
54 if (kAdreno3xx_GrGLRenderer == args.fRenderer) {
55 args.fGLSLGeneration = k110_GrGLSLGeneration;
58 GrGLGetDriverInfo(interface->fStandard, args.fVendor, renderer, ver,
59 &args.fDriver, &args.fDriverVersion);
61 args.fContextOptions = &options;
63 return new GrGLContext(args);
66 GrGLContextInfo::GrGLContextInfo(const ConstructorArgs& args) {
67 fInterface.reset(SkRef(args.fInterface));
68 fGLVersion = args.fGLVersion;
69 fGLSLGeneration = args.fGLSLGeneration;
70 fVendor = args.fVendor;
71 fRenderer = args.fRenderer;
72 fDriver = args.fDriver;
73 fDriverVersion = args.fDriverVersion;
75 fGLCaps.reset(new GrGLCaps(*args.fContextOptions, *this, fInterface));