OLD | NEW |
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 GL_CALL_RET(renderer, GetString(GR_GL_RENDERER)); | 133 GL_CALL_RET(renderer, GetString(GR_GL_RENDERER)); |
134 GL_CALL_RET(version, GetString(GR_GL_VERSION)); | 134 GL_CALL_RET(version, GetString(GR_GL_VERSION)); |
135 GrPrintf("------------------------- create GrGpuGL %p --------------\n", | 135 GrPrintf("------------------------- create GrGpuGL %p --------------\n", |
136 this); | 136 this); |
137 GrPrintf("------ VENDOR %s\n", vendor); | 137 GrPrintf("------ VENDOR %s\n", vendor); |
138 GrPrintf("------ RENDERER %s\n", renderer); | 138 GrPrintf("------ RENDERER %s\n", renderer); |
139 GrPrintf("------ VERSION %s\n", version); | 139 GrPrintf("------ VERSION %s\n", version); |
140 GrPrintf("------ EXTENSIONS\n"); | 140 GrPrintf("------ EXTENSIONS\n"); |
141 ctx.info().extensions().print(); | 141 ctx.info().extensions().print(); |
142 GrPrintf("\n"); | 142 GrPrintf("\n"); |
143 ctx.info().caps()->print(); | 143 GrPrintf(ctx.info().caps()->dump().c_str()); |
144 } | 144 } |
145 | 145 |
146 fProgramCache = SkNEW_ARGS(ProgramCache, (this)); | 146 fProgramCache = SkNEW_ARGS(ProgramCache, (this)); |
147 | 147 |
148 SkASSERT(this->glCaps().maxVertexAttributes() >= GrDrawState::kMaxVertexAttr
ibCnt); | 148 SkASSERT(this->glCaps().maxVertexAttributes() >= GrDrawState::kMaxVertexAttr
ibCnt); |
149 | 149 |
150 fLastSuccessfulStencilFmtIdx = 0; | 150 fLastSuccessfulStencilFmtIdx = 0; |
151 fHWProgramID = 0; | 151 fHWProgramID = 0; |
152 } | 152 } |
153 | 153 |
(...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2684 this->setVertexArrayID(gpu, 0); | 2684 this->setVertexArrayID(gpu, 0); |
2685 } | 2685 } |
2686 int attrCount = gpu->glCaps().maxVertexAttributes(); | 2686 int attrCount = gpu->glCaps().maxVertexAttributes(); |
2687 if (fDefaultVertexArrayAttribState.count() != attrCount) { | 2687 if (fDefaultVertexArrayAttribState.count() != attrCount) { |
2688 fDefaultVertexArrayAttribState.resize(attrCount); | 2688 fDefaultVertexArrayAttribState.resize(attrCount); |
2689 } | 2689 } |
2690 attribState = &fDefaultVertexArrayAttribState; | 2690 attribState = &fDefaultVertexArrayAttribState; |
2691 } | 2691 } |
2692 return attribState; | 2692 return attribState; |
2693 } | 2693 } |
OLD | NEW |