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

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

Issue 1822343002: Make max number of vertex attributes be checked dynamically (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Address comment Created 4 years, 9 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
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/vk/GrVkCaps.cpp » ('j') | 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 #include "GrGLGpu.h" 8 #include "GrGLGpu.h"
9 #include "GrGLGLSL.h" 9 #include "GrGLGLSL.h"
10 #include "GrGLStencilAttachment.h" 10 #include "GrGLStencilAttachment.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SkDebugf("------ RENDERER %s\n", renderer); 207 SkDebugf("------ RENDERER %s\n", renderer);
208 SkDebugf("------ VERSION %s\n", version); 208 SkDebugf("------ VERSION %s\n", version);
209 SkDebugf("------ EXTENSIONS\n"); 209 SkDebugf("------ EXTENSIONS\n");
210 this->glContext().extensions().print(); 210 this->glContext().extensions().print();
211 SkDebugf("\n"); 211 SkDebugf("\n");
212 SkDebugf("%s", this->glCaps().dump().c_str()); 212 SkDebugf("%s", this->glCaps().dump().c_str());
213 } 213 }
214 214
215 fProgramCache = new ProgramCache(this); 215 fProgramCache = new ProgramCache(this);
216 216
217 SkASSERT(this->glCaps().maxVertexAttributes() >= GrGeometryProcessor::kMaxVe rtexAttribs);
218
219 fHWProgramID = 0; 217 fHWProgramID = 0;
220 fTempSrcFBOID = 0; 218 fTempSrcFBOID = 0;
221 fTempDstFBOID = 0; 219 fTempDstFBOID = 0;
222 fStencilClearFBOID = 0; 220 fStencilClearFBOID = 0;
223 221
224 if (this->glCaps().shaderCaps()->pathRenderingSupport()) { 222 if (this->glCaps().shaderCaps()->pathRenderingSupport()) {
225 fPathRendering.reset(new GrGLPathRendering(this)); 223 fPathRendering.reset(new GrGLPathRendering(this));
226 } 224 }
227 this->createCopyPrograms(); 225 this->createCopyPrograms();
228 fWireRectProgram.fProgram = 0; 226 fWireRectProgram.fProgram = 0;
(...skipping 4188 matching lines...) Expand 10 before | Expand all | Expand 10 after
4417 if (GR_GL_TEXTURE_EXTERNAL == glTexture->target() || 4415 if (GR_GL_TEXTURE_EXTERNAL == glTexture->target() ||
4418 GR_GL_TEXTURE_RECTANGLE == glTexture->target()) { 4416 GR_GL_TEXTURE_RECTANGLE == glTexture->target()) {
4419 copyParams->fFilter = GrTextureParams::kNone_FilterMode; 4417 copyParams->fFilter = GrTextureParams::kNone_FilterMode;
4420 copyParams->fWidth = texture->width(); 4418 copyParams->fWidth = texture->width();
4421 copyParams->fHeight = texture->height(); 4419 copyParams->fHeight = texture->height();
4422 return true; 4420 return true;
4423 } 4421 }
4424 } 4422 }
4425 return false; 4423 return false;
4426 } 4424 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/vk/GrVkCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698