| 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" |
| 11 #include "GrGLShaderBuilder.h" | |
| 12 #include "GrTemplates.h" | 11 #include "GrTemplates.h" |
| 13 #include "GrTypes.h" | 12 #include "GrTypes.h" |
| 14 #include "SkStrokeRec.h" | 13 #include "SkStrokeRec.h" |
| 15 #include "SkTemplates.h" | 14 #include "SkTemplates.h" |
| 16 | 15 |
| 17 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) | 16 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) |
| 18 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X) | 17 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X) |
| 19 | 18 |
| 20 #define SKIP_CACHE_CHECK true | 19 #define SKIP_CACHE_CHECK true |
| 21 | 20 |
| (...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 this->setVertexArrayID(gpu, 0); | 2604 this->setVertexArrayID(gpu, 0); |
| 2606 } | 2605 } |
| 2607 int attrCount = gpu->glCaps().maxVertexAttributes(); | 2606 int attrCount = gpu->glCaps().maxVertexAttributes(); |
| 2608 if (fDefaultVertexArrayAttribState.count() != attrCount) { | 2607 if (fDefaultVertexArrayAttribState.count() != attrCount) { |
| 2609 fDefaultVertexArrayAttribState.resize(attrCount); | 2608 fDefaultVertexArrayAttribState.resize(attrCount); |
| 2610 } | 2609 } |
| 2611 attribState = &fDefaultVertexArrayAttribState; | 2610 attribState = &fDefaultVertexArrayAttribState; |
| 2612 } | 2611 } |
| 2613 return attribState; | 2612 return attribState; |
| 2614 } | 2613 } |
| OLD | NEW |