| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index f916b4f436eb5f62b67b0bf7ac725d16b2941128..cd28ecaab5b93d248da0911effa9f4e4b6a6b9c2 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -1759,9 +1759,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;
|
| @@ -2540,7 +2538,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(),
|
| @@ -3481,7 +3479,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));
|
| @@ -3526,7 +3525,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)
|
|
|