revert 8265-8264 (broke build)
git-svn-id: http://skia.googlecode.com/svn/trunk@8268 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 2d57660..79edd0b 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -390,23 +390,25 @@
const SkMatrix* matrix = NULL);
/**
- * Maps a rect of local coordinates onto the a rect of destination
- * coordinates. Each rect can optionally be transformed. The localRect
+ * Maps a rect of paint coordinates onto the a rect of destination
+ * coordinates. Each rect can optionally be transformed. The srcRect
* is stretched over the dstRect. The dstRect is transformed by the
- * context's matrix. Additional optional matrices for both rects can be
- * provided by parameters.
+ * context's matrix and the srcRect is transformed by the paint's matrix.
+ * Additional optional matrices can be provided by parameters.
*
- * @param paint describes how to color pixels.
- * @param dstRect the destination rect to draw.
- * @param localRect rect of local coordinates to be mapped onto dstRect
- * @param dstMatrix Optional matrix to transform dstRect. Applied before context's matrix.
- * @param localMatrix Optional matrix to transform localRect.
+ * @param paint describes how to color pixels.
+ * @param dstRect the destination rect to draw.
+ * @param srcRect rect of paint coordinates to be mapped onto dstRect
+ * @param dstMatrix Optional matrix to transform dstRect. Applied before
+ * context's matrix.
+ * @param srcMatrix Optional matrix to transform srcRect Applied before
+ * paint's matrix.
*/
void drawRectToRect(const GrPaint& paint,
const GrRect& dstRect,
- const GrRect& localRect,
+ const GrRect& srcRect,
const SkMatrix* dstMatrix = NULL,
- const SkMatrix* localMatrix = NULL);
+ const SkMatrix* srcMatrix = NULL);
/**
* Draws a path.
@@ -697,7 +699,7 @@
this->restore();
if (NULL != paint) {
- if (!paint->localCoordChangeInverse(context->getMatrix())) {
+ if (!paint->sourceCoordChangeByInverse(context->getMatrix())) {
return false;
}
}
@@ -735,7 +737,7 @@
*/
void preConcat(const SkMatrix& preConcat, GrPaint* paint = NULL) {
if (NULL != paint) {
- paint->localCoordChange(preConcat);
+ paint->sourceCoordChange(preConcat);
}
fContext->concatMatrix(preConcat);
}