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

Side by Side Diff: src/gpu/gl/GrGpuGL.cpp

Issue 14864002: Fix GL extension printing on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« src/gpu/gl/GrGLExtensions.cpp ('K') | « src/gpu/gl/GrGLExtensions.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "GrGpuGL.h" 9 #include "GrGpuGL.h"
10 #include "GrGLStencilBuffer.h" 10 #include "GrGLStencilBuffer.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 GrAssert(ctx.isInitialized()); 154 GrAssert(ctx.isInitialized());
155 155
156 fCaps.reset(SkRef(ctx.info().caps())); 156 fCaps.reset(SkRef(ctx.info().caps()));
157 157
158 fillInConfigRenderableTable(); 158 fillInConfigRenderableTable();
159 159
160 160
161 GrGLClearErr(fGLContext.interface()); 161 GrGLClearErr(fGLContext.interface());
162 162
163 if (gPrintStartupSpew) { 163 if (gPrintStartupSpew) {
164 const GrGLubyte* ext;
165 GL_CALL_RET(ext, GetString(GR_GL_EXTENSIONS));
166 const GrGLubyte* vendor; 164 const GrGLubyte* vendor;
167 const GrGLubyte* renderer; 165 const GrGLubyte* renderer;
168 const GrGLubyte* version; 166 const GrGLubyte* version;
169 GL_CALL_RET(vendor, GetString(GR_GL_VENDOR)); 167 GL_CALL_RET(vendor, GetString(GR_GL_VENDOR));
170 GL_CALL_RET(renderer, GetString(GR_GL_RENDERER)); 168 GL_CALL_RET(renderer, GetString(GR_GL_RENDERER));
171 GL_CALL_RET(version, GetString(GR_GL_VERSION)); 169 GL_CALL_RET(version, GetString(GR_GL_VERSION));
172 GrPrintf("------------------------- create GrGpuGL %p --------------\n", 170 GrPrintf("------------------------- create GrGpuGL %p --------------\n",
173 this); 171 this);
174 GrPrintf("------ VENDOR %s\n", vendor); 172 GrPrintf("------ VENDOR %s\n", vendor);
175 GrPrintf("------ RENDERER %s\n", renderer); 173 GrPrintf("------ RENDERER %s\n", renderer);
176 GrPrintf("------ VERSION %s\n", version); 174 GrPrintf("------ VERSION %s\n", version);
177 GrPrintf("------ EXTENSIONS\n %s \n", ext); 175 GrPrintf("------ EXTENSIONS\n");
176 ctx.info().extensions().print();
177 GrPrintf("\n");
178 ctx.info().caps()->print(); 178 ctx.info().caps()->print();
179 } 179 }
180 180
181 fProgramCache = SkNEW_ARGS(ProgramCache, (this->glContext())); 181 fProgramCache = SkNEW_ARGS(ProgramCache, (this->glContext()));
182 182
183 GrAssert(this->glCaps().maxVertexAttributes() >= GrDrawState::kMaxVertexAttr ibCnt); 183 GrAssert(this->glCaps().maxVertexAttributes() >= GrDrawState::kMaxVertexAttr ibCnt);
184 184
185 fLastSuccessfulStencilFmtIdx = 0; 185 fLastSuccessfulStencilFmtIdx = 0;
186 if (false) { // avoid bit rot, suppress warning 186 if (false) { // avoid bit rot, suppress warning
187 fbo_test(this->glInterface(), 0, 0); 187 fbo_test(this->glInterface(), 0, 0);
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 this->setVertexArrayID(gpu, 0); 2502 this->setVertexArrayID(gpu, 0);
2503 } 2503 }
2504 int attrCount = gpu->glCaps().maxVertexAttributes(); 2504 int attrCount = gpu->glCaps().maxVertexAttributes();
2505 if (fDefaultVertexArrayAttribState.count() != attrCount) { 2505 if (fDefaultVertexArrayAttribState.count() != attrCount) {
2506 fDefaultVertexArrayAttribState.resize(attrCount); 2506 fDefaultVertexArrayAttribState.resize(attrCount);
2507 } 2507 }
2508 attribState = &fDefaultVertexArrayAttribState; 2508 attribState = &fDefaultVertexArrayAttribState;
2509 } 2509 }
2510 return attribState; 2510 return attribState;
2511 } 2511 }
OLDNEW
« src/gpu/gl/GrGLExtensions.cpp ('K') | « src/gpu/gl/GrGLExtensions.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698