Chromium Code Reviews| Index: src/gpu/gl/GrGLExtensions.cpp |
| =================================================================== |
| --- src/gpu/gl/GrGLExtensions.cpp (revision 8966) |
| +++ src/gpu/gl/GrGLExtensions.cpp (working copy) |
| @@ -81,3 +81,14 @@ |
| sizeof(SkString)); |
| return idx >= 0; |
| } |
| + |
| +void GrGLExtensions::print(const char* sep) const { |
| + if (NULL == sep) { |
|
robertphillips
2013/05/02 19:39:14
Wouldn't " " be a better default?
bsalomon
2013/05/02 19:41:59
I suppose so.. I could also just assert, was mostl
|
| + sep = ""; |
| + } |
| + int cnt = fStrings.count(); |
| + for (int i = 0; i < cnt; ++i) { |
| + GrPrintf("%s%s", fStrings[i].c_str(), (i < cnt - 1) ? sep : ""); |
| + } |
| +} |
| + |