Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 96ad411fc7f0c8e75444395352274ffab3400ae0..60692f8fe3ed19dbd79a7ddcb562a6f1c5b8ea11 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -264,7 +264,7 @@ bool GrGpuGL::flushGraphicsState(DrawType type, |
return true; |
} |
-void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
+void GrGpuGL::setupGeometry(const GrDrawTarget::DrawInfo& info, size_t* indexOffsetInBytes) { |
SkAutoTUnref<GrOptDrawState> optState( |
GrOptDrawState::Create(this->getDrawState(), this, info.getDstCopy(), |
PrimTypeToDrawType(info.primitiveType()))); |
@@ -281,10 +281,10 @@ void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
GrGLVertexBuffer* vbuf; |
switch (this->getGeomSrc().fVertexSrc) { |
- case kBuffer_GeometrySrcType: |
+ case GrDrawTarget::kBuffer_GeometrySrcType: |
vbuf = (GrGLVertexBuffer*) this->getGeomSrc().fVertexBuffer; |
break; |
- case kReserved_GeometrySrcType: |
+ case GrDrawTarget::kReserved_GeometrySrcType: |
this->finalizeReservedVertices(); |
vertexOffsetInBytes += geoPoolState.fPoolStartVertex * this->getGeomSrc().fVertexSize; |
vbuf = (GrGLVertexBuffer*) geoPoolState.fPoolVertexBuffer; |
@@ -303,11 +303,11 @@ void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
SkASSERT(indexOffsetInBytes); |
switch (this->getGeomSrc().fIndexSrc) { |
- case kBuffer_GeometrySrcType: |
+ case GrDrawTarget::kBuffer_GeometrySrcType: |
*indexOffsetInBytes = 0; |
ibuf = (GrGLIndexBuffer*)this->getGeomSrc().fIndexBuffer; |
break; |
- case kReserved_GeometrySrcType: |
+ case GrDrawTarget::kReserved_GeometrySrcType: |
this->finalizeReservedIndices(); |
*indexOffsetInBytes = geoPoolState.fPoolStartIndex * sizeof(GrGLushort); |
ibuf = (GrGLIndexBuffer*) geoPoolState.fPoolIndexBuffer; |