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

Unified Diff: src/gpu/GrAARectRenderer.h

Issue 732693002: Drawstate on stack (Closed) Base URL: https://skia.googlesource.com/skia.git@real_def_gp
Patch Set: tiny fix Created 6 years, 1 month 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 | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAARectRenderer.h
diff --git a/src/gpu/GrAARectRenderer.h b/src/gpu/GrAARectRenderer.h
index e39b87a5fd3305103497ba83a346373b881f530f..a8ba0851082d938a77a234b726552c4c3b9bc4ee 100644
--- a/src/gpu/GrAARectRenderer.h
+++ b/src/gpu/GrAARectRenderer.h
@@ -14,6 +14,7 @@
#include "SkStrokeRec.h"
class GrGpu;
+class GrDrawState;
class GrDrawTarget;
class GrIndexBuffer;
@@ -41,32 +42,37 @@ public:
// between them by passing in stroke (==NULL means fill).
void fillAARect(GrDrawTarget* target,
+ GrDrawState* ds,
const SkRect& rect,
const SkMatrix& combinedMatrix,
const SkRect& devRect) {
- this->geometryFillAARect(target, rect, combinedMatrix, devRect);
+ this->geometryFillAARect(target, ds, rect, combinedMatrix, devRect);
}
- void strokeAARect(GrDrawTarget* target,
+ void strokeAARect(GrDrawTarget*,
+ GrDrawState*,
const SkRect& rect,
const SkMatrix& combinedMatrix,
const SkRect& devRect,
const SkStrokeRec& stroke);
// First rect is outer; second rect is inner
- void fillAANestedRects(GrDrawTarget* target,
+ void fillAANestedRects(GrDrawTarget*,
+ GrDrawState*,
const SkRect rects[2],
const SkMatrix& combinedMatrix);
private:
GrIndexBuffer* aaStrokeRectIndexBuffer(bool miterStroke);
- void geometryFillAARect(GrDrawTarget* target,
+ void geometryFillAARect(GrDrawTarget*,
+ GrDrawState*,
const SkRect& rect,
const SkMatrix& combinedMatrix,
const SkRect& devRect);
- void geometryStrokeAARect(GrDrawTarget* target,
+ void geometryStrokeAARect(GrDrawTarget*,
+ GrDrawState*,
const SkRect& devOutside,
const SkRect& devOutsideAssist,
const SkRect& devInside,
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698