| 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 #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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |