OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "GrGLVertexArray.h" | 8 #include "GrGLVertexArray.h" |
9 #include "GrGpuGL.h" | 9 #include "GrGLGpu.h" |
10 | 10 |
11 #define GPUGL static_cast<GrGLGpu*>(this->getGpu()) | 11 #define GPUGL static_cast<GrGLGpu*>(this->getGpu()) |
12 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X); | 12 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X); |
13 | 13 |
14 void GrGLAttribArrayState::set(const GrGLGpu* gpu, | 14 void GrGLAttribArrayState::set(const GrGLGpu* gpu, |
15 int index, | 15 int index, |
16 GrGLVertexBuffer* buffer, | 16 GrGLVertexBuffer* buffer, |
17 GrGLint size, | 17 GrGLint size, |
18 GrGLenum type, | 18 GrGLenum type, |
19 GrGLboolean normalized, | 19 GrGLboolean normalized, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void GrGLVertexArray::notifyIndexBufferDelete(GrGLuint bufferID) { | 114 void GrGLVertexArray::notifyIndexBufferDelete(GrGLuint bufferID) { |
115 if (fIndexBufferIDIsValid && bufferID == fIndexBufferID) { | 115 if (fIndexBufferIDIsValid && bufferID == fIndexBufferID) { |
116 fIndexBufferID = 0; | 116 fIndexBufferID = 0; |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 void GrGLVertexArray::invalidateCachedState() { | 120 void GrGLVertexArray::invalidateCachedState() { |
121 fAttribArrays.invalidate(); | 121 fAttribArrays.invalidate(); |
122 fIndexBufferIDIsValid = false; | 122 fIndexBufferIDIsValid = false; |
123 } | 123 } |
OLD | NEW |