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

Unified Diff: src/gpu/GrAARectRenderer.h

Issue 815553003: Move ViewMatrix off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@remove-fragment-stage
Patch Set: more claenup 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/GrAARectRenderer.h
diff --git a/src/gpu/GrAARectRenderer.h b/src/gpu/GrAARectRenderer.h
index d97a1118240b4ebfa0b3eea8aebad6ddddff9170..82127fe95aec935b28227a1a57ea80a6b59f98b6 100644
--- a/src/gpu/GrAARectRenderer.h
+++ b/src/gpu/GrAARectRenderer.h
@@ -45,19 +45,19 @@ public:
void fillAARect(GrDrawTarget* target,
GrDrawState* ds,
GrColor color,
+ const SkMatrix& viewMatrix,
const SkMatrix& localMatrix,
const SkRect& rect,
- const SkMatrix& combinedMatrix,
const SkRect& devRect) {
- this->geometryFillAARect(target, ds, color, localMatrix, rect, combinedMatrix, devRect);
+ this->geometryFillAARect(target, ds, color, viewMatrix, localMatrix, rect, devRect);
}
void strokeAARect(GrDrawTarget*,
GrDrawState*,
GrColor,
+ const SkMatrix& viewMatrix,
const SkMatrix& localMatrix,
const SkRect& rect,
- const SkMatrix& combinedMatrix,
const SkRect& devRect,
const SkStrokeRec& stroke);
@@ -65,9 +65,9 @@ public:
void fillAANestedRects(GrDrawTarget*,
GrDrawState*,
GrColor,
+ const SkMatrix& viewMatrix,
const SkMatrix& localMatrix,
- const SkRect rects[2],
- const SkMatrix& combinedMatrix);
+ const SkRect rects[2]);
private:
GrIndexBuffer* aaStrokeRectIndexBuffer(bool miterStroke);
@@ -75,9 +75,9 @@ private:
void geometryFillAARect(GrDrawTarget*,
GrDrawState*,
GrColor,
+ const SkMatrix& viewMatrix,
const SkMatrix& localMatrix,
const SkRect& rect,
- const SkMatrix& combinedMatrix,
const SkRect& devRect);
void geometryStrokeAARect(GrDrawTarget*,

Powered by Google App Engine
This is Rietveld 408576698