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 "GrGLGpu.h" | 9 #include "GrGLGpu.h" |
10 #include "GrGLGLSL.h" | 10 #include "GrGLGLSL.h" |
11 #include "GrGLStencilAttachment.h" | 11 #include "GrGLStencilAttachment.h" |
12 #include "GrGLTextureRenderTarget.h" | 12 #include "GrGLTextureRenderTarget.h" |
13 #include "GrGpuResourcePriv.h" | 13 #include "GrGpuResourcePriv.h" |
14 #include "GrPipeline.h" | 14 #include "GrPipeline.h" |
15 #include "GrRenderTargetPriv.h" | 15 #include "GrRenderTargetPriv.h" |
16 #include "GrSurfacePriv.h" | 16 #include "GrSurfacePriv.h" |
17 #include "GrTemplates.h" | |
18 #include "GrTexturePriv.h" | 17 #include "GrTexturePriv.h" |
19 #include "GrTypes.h" | 18 #include "GrTypes.h" |
20 #include "GrVertices.h" | 19 #include "GrVertices.h" |
21 #include "builders/GrGLShaderStringBuilder.h" | 20 #include "builders/GrGLShaderStringBuilder.h" |
22 #include "glsl/GrGLSLCaps.h" | 21 #include "glsl/GrGLSLCaps.h" |
23 #include "SkStrokeRec.h" | 22 #include "SkStrokeRec.h" |
24 #include "SkTemplates.h" | 23 #include "SkTemplates.h" |
25 | 24 |
26 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) | 25 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) |
27 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X) | 26 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X) |
(...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 this->setVertexArrayID(gpu, 0); | 3155 this->setVertexArrayID(gpu, 0); |
3157 } | 3156 } |
3158 int attrCount = gpu->glCaps().maxVertexAttributes(); | 3157 int attrCount = gpu->glCaps().maxVertexAttributes(); |
3159 if (fDefaultVertexArrayAttribState.count() != attrCount) { | 3158 if (fDefaultVertexArrayAttribState.count() != attrCount) { |
3160 fDefaultVertexArrayAttribState.resize(attrCount); | 3159 fDefaultVertexArrayAttribState.resize(attrCount); |
3161 } | 3160 } |
3162 attribState = &fDefaultVertexArrayAttribState; | 3161 attribState = &fDefaultVertexArrayAttribState; |
3163 } | 3162 } |
3164 return attribState; | 3163 return attribState; |
3165 } | 3164 } |
OLD | NEW |