Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/gpu/GrContext.h

Issue 441623005: Remove unused matrix param from GrContext/GrDrawTarget rect drawing functions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 103d76e8a20c3a2608deb9c10db50f3d58e0f916..362d11146ab4091c011897dd01379c85fdba5661 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -468,33 +468,26 @@ public:
* Otherwise, if stroke width == 0, then the stroke
* is always a single pixel thick, else the rect is
* mitered/beveled stroked based on stroke width.
- * If the stroke is dashed the rect is sent to drawPath.
- * @param matrix Optional matrix applied to the rect. Applied before
- * context's matrix or the paint's matrix.
* The rects coords are used to access the paint (through texture matrix)
*/
void drawRect(const GrPaint& paint,
const SkRect&,
- const GrStrokeInfo* strokeInfo = NULL,
- const SkMatrix* matrix = NULL);
+ const GrStrokeInfo* strokeInfo = NULL);
/**
* Maps a rect of local coordinates onto the a rect of destination
- * coordinates. Each rect can optionally be transformed. The localRect
- * 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.
+ * coordinates. The localRect is stretched over the dstRect. The dstRect is
+ * transformed by the context's matrix. An additional optional matrix can be
+ * provided to transform the local rect.
*
* @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.
*/
void drawRectToRect(const GrPaint& paint,
const SkRect& dstRect,
const SkRect& localRect,
- const SkMatrix* dstMatrix = NULL,
const SkMatrix* localMatrix = NULL);
/**
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698