Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: src/gpu/gl/GrGLExtensions.cpp

Issue 14864002: Fix GL extension printing on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 : "");
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698