| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index 4dc17b5a0492aefadbdcac9f5675023260308c22..37743371b23fa362de2cb0f89d3a230d28b740c9 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -1765,9 +1765,7 @@ void GrGLGpu::setupGeometry(const GrPrimitiveProcessor& primProc,
|
| attribState->set(this,
|
| attribIndex,
|
| vbuf->bufferID(),
|
| - GrGLAttribTypeToLayout(attribType).fCount,
|
| - GrGLAttribTypeToLayout(attribType).fType,
|
| - GrGLAttribTypeToLayout(attribType).fNormalized,
|
| + attribType,
|
| stride,
|
| reinterpret_cast<GrGLvoid*>(vertexOffsetInBytes + offset));
|
| offset += attrib.fOffset;
|
| @@ -2547,7 +2545,7 @@ void GrGLGpu::stampRectUsingProgram(GrGLuint program, const SkRect& bounds, GrGL
|
|
|
| GrGLAttribArrayState* attribs =
|
| this->fHWGeometryState.bindArrayAndBufferToDraw(this, arrayBuffer);
|
| - attribs->set(this, 0, arrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0);
|
| + attribs->set(this, 0, arrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat), 0);
|
| attribs->disableUnusedArrays(this, 0x1);
|
|
|
| GL_CALL(Uniform4f(posXformUniform, bounds.width(), bounds.height(), bounds.left(),
|
| @@ -3489,7 +3487,8 @@ void GrGLGpu::drawDebugWireRect(GrRenderTarget* rt, const SkIRect& rect, GrColor
|
|
|
| GrGLAttribArrayState* attribs =
|
| fHWGeometryState.bindArrayAndBufferToDraw(this, fWireRectArrayBuffer);
|
| - attribs->set(this, 0, fWireRectArrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0);
|
| + attribs->set(this, 0, fWireRectArrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat),
|
| + 0);
|
| attribs->disableUnusedArrays(this, 0x1);
|
|
|
| GL_CALL(Uniform4fv(fWireRectProgram.fRectUniform, 1, edges));
|
| @@ -3534,7 +3533,8 @@ void GrGLGpu::copySurfaceAsDraw(GrSurface* dst,
|
|
|
| GrGLAttribArrayState* attribs =
|
| fHWGeometryState.bindArrayAndBufferToDraw(this, fCopyProgramArrayBuffer);
|
| - attribs->set(this, 0, fCopyProgramArrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0);
|
| + attribs->set(this, 0, fCopyProgramArrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat),
|
| + 0);
|
| attribs->disableUnusedArrays(this, 0x1);
|
|
|
| // dst rect edges in NDC (-1 to 1)
|
|
|