Lines Matching defs:ext
21 // finds the index of ext in strings or a negative result if ext is not found.
22 static int find_string(const SkTArray<SkString>& strings, const char ext[]) {
26 SkString extensionStr(ext);
72 const char* ext = (const char*) getStringi(GR_GL_EXTENSIONS, i);
73 (*fStrings)[i] = ext;
103 bool GrGLExtensions::has(const char ext[]) const {
105 return find_string(*fStrings, ext) >= 0;
108 bool GrGLExtensions::remove(const char ext[]) {
110 int idx = find_string(*fStrings, ext);
124 void GrGLExtensions::add(const char ext[]) {
125 int idx = find_string(*fStrings, ext);
129 fStrings->push_back().set(ext);