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

Unified Diff: src/gpu/batches/GrAAStrokeRectBatch.h

Issue 1345853005: Move determiniation of strokerect rects internal (Closed) Base URL: https://skia.googlesource.com/skia.git@strokerectfix
Patch Set: comment fixed Created 5 years, 3 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
Index: src/gpu/batches/GrAAStrokeRectBatch.h
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.h b/src/gpu/batches/GrAAStrokeRectBatch.h
index 242597b66a5b42419dca8f90cae065038a9d6976..4959232bab92cb321bfb3083da15aa746c979605 100644
--- a/src/gpu/batches/GrAAStrokeRectBatch.h
+++ b/src/gpu/batches/GrAAStrokeRectBatch.h
@@ -15,6 +15,7 @@ class GrDrawBatch;
class GrResourceProvider;
class SkMatrix;
struct SkRect;
+class SkStrokeRec;
namespace GrAAStrokeRectBatch {
@@ -26,14 +27,16 @@ GrDrawBatch* Create(GrColor color,
bool miterStroke,
bool degenerate);
+GrDrawBatch* Create(GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkStrokeRec& stroke);
+
bool Append(GrBatch*,
GrColor color,
const SkMatrix& viewMatrix,
- const SkRect& devOutside,
- const SkRect& devOutsideAssist,
- const SkRect& devInside,
- bool miterStroke,
- bool degenerate);
+ const SkRect& rect,
+ const SkStrokeRec& stroke);
};

Powered by Google App Engine
This is Rietveld 408576698