| commit | 00142c44057e5a7c156b17a4bfc98a9605cf3f18 | [log] [tgz] |
|---|---|---|
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu May 02 19:42:54 2013 +0000 |
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu May 02 19:42:54 2013 +0000 |
| tree | 2b22c0bad592edf041471719080b05ded059984f | |
| parent | 5bdfb331ac650cf464baa96a49e2473ee10a515c [diff] [blame] |
Fix GL extension printing on core profiles. R=robertphillips@google.com Review URL: https://codereview.chromium.org/14864002 git-svn-id: http://skia.googlecode.com/svn/trunk@8970 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLExtensions.cpp b/src/gpu/gl/GrGLExtensions.cpp index 47cdba1..232ea7c 100644 --- a/src/gpu/gl/GrGLExtensions.cpp +++ b/src/gpu/gl/GrGLExtensions.cpp
@@ -81,3 +81,14 @@ sizeof(SkString)); return idx >= 0; } + +void GrGLExtensions::print(const char* sep) const { + if (NULL == sep) { + sep = " "; + } + int cnt = fStrings.count(); + for (int i = 0; i < cnt; ++i) { + GrPrintf("%s%s", fStrings[i].c_str(), (i < cnt - 1) ? sep : ""); + } +} +