Adds ability to draw rects using a unit square vertex buffer. Useful when matrix...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Feb 2011 19:12:40 +0000 (19:12 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Feb 2011 19:12:40 +0000 (19:12 +0000)
commit6f7fbc9fbb584b9b9fa6ed3a677d71ecd49aafce
tree4c5cc5e7e00780b179bfd3995eb6f2cfc64797df
parentfb697e7a37adf34cbafaedb94cc373e7b6d1fa57
Adds ability to draw rects using a unit square vertex buffer. Useful when matrix/uniform changes are less expensive than sending new verts.

Adds optional matrix parameters to GrContext drawRect and drawRectToRect so that non-axis-aligned matrices can be drawn using these functions.

codereview Issue 4105049

git-svn-id: http://skia.googlecode.com/svn/trunk@749 2bbb7eff-a529-9590-31e7-b0007b416f81
gpu/include/GrConfig.h
gpu/include/GrContext.h
gpu/include/GrDrawTarget.h
gpu/include/GrGpu.h
gpu/src/GrContext.cpp
gpu/src/GrDrawTarget.cpp
gpu/src/GrGpu.cpp
src/gpu/SkGpuDevice.cpp
vs/SampleApp/SampleApp.vcxproj