Lines Matching refs: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);
103 const char* ext = (const char*) getStringi(GR_GL_EXTENSIONS, i);
104 fStrings[i] = ext;
125 bool GrGLExtensions::has(const char ext[]) const {
127 return find_string(fStrings, ext) >= 0;
130 bool GrGLExtensions::remove(const char ext[]) {
132 int idx = find_string(fStrings, ext);
146 void GrGLExtensions::add(const char ext[]) {
147 int idx = find_string(fStrings, ext);
151 fStrings.emplace_back(ext);