DescriptionMove vertex layout from GeometrySrcState to GrDrawState.
The main chunk is pulling the vertex layout from GrDrawTarget::GeometrySrcState to GrDrawState. GeometrySrcState still stores the vertex size because it's needed for allocations.
Because GeometrySrcState can be pushed and popped and we may need this behavior for the vertex layout, AutoGeometryPush now includes an AutoStateRestore and has been renamed to AutoGeometryAndStatePush.
Finally vertexLayout has been removed as an argument to a number of routines. Before allocating geometry using AutoReleaseGeometry and reserveVertexAndIndexSpace(), it is now necessary to explicitly set any new vertexLayout in the current GrDrawState.
Patch Set 1 #
Total comments: 19
Patch Set 2 : Cleaned up spurious code. Added default vertex layout. #Patch Set 3 : Replace fVertexFormat in DrawRecord with fVertexSize #
Total comments: 1
Patch Set 4 : Remove fVertexSize entirely from DrawRecord #
Total comments: 3
MessagesTotal messages: 11
|