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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 817853002: Remove localcoordchange functions off paint (Closed) Base URL: https://skia.googlesource.com/skia.git@local-matrix-on-gp
Patch Set: bug fix Created 6 years 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
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 64cbc8781eba2048ead8e786bd9e87b3e6a1b883..204d1190a4a75cc20d76d8848ead3719b37b0e7f 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -312,20 +312,21 @@ public:
GrColor color,
const SkRect& rect,
const SkRect* localRect,
- const SkMatrix* localMatrix) {
+ const SkMatrix* localMatrix,
+ const SkMatrix* primProcLocalMatrix) {
AutoGeometryPush agp(this);
- this->onDrawRect(ds, color, rect, localRect, localMatrix);
+ this->onDrawRect(ds, color, rect, localRect, localMatrix, primProcLocalMatrix);
}
/**
* Helper for drawRect when the caller doesn't need separate local rects or matrices.
*/
void drawSimpleRect(GrDrawState* ds, GrColor color, const SkRect& rect) {
- this->drawRect(ds, color, rect, NULL, NULL);
+ this->drawRect(ds, color, rect, NULL, NULL, NULL);
}
void drawSimpleRect(GrDrawState* ds, GrColor color, const SkIRect& irect) {
SkRect rect = SkRect::Make(irect);
- this->drawRect(ds, color, rect, NULL, NULL);
+ this->drawRect(ds, color, rect, NULL, NULL, NULL);
}
/**
@@ -709,7 +710,8 @@ private:
GrColor color,
const SkRect& rect,
const SkRect* localRect,
- const SkMatrix* localMatrix) = 0;
+ const SkMatrix* localMatrix,
+ const SkMatrix* primProcLocalMatrix) = 0;
virtual void onStencilPath(const GrDrawState&,
const GrPathProcessor*,

Powered by Google App Engine
This is Rietveld 408576698