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

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

Issue 1355353002: Create GrDraw and start fast pathing src over rects (Closed) Base URL: https://skia.googlesource.com/skia.git@strokerect2
Patch Set: rebase 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/GrNonAAStrokeRectBatch.h
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.h b/src/gpu/batches/GrNonAAStrokeRectBatch.h
index 3cee47dedd71c164cfcee827fd099986703f2d9a..02dc6b34786255b1c7bf379d3667af84f19d4046 100644
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.h
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.h
@@ -12,6 +12,7 @@
#include "SkTypes.h"
+class GrBatch;
class GrDrawBatch;
struct SkRect;
class SkMatrix;
@@ -24,7 +25,9 @@ GrDrawBatch* Create(GrColor color,
SkScalar strokeWidth,
bool snapToPixelCenters);
-void Append(GrColor color,
+// Append does not work for GrNonAAStrokeRectBatch
+void Append(GrBatch*,
bsalomon 2015/09/23 13:49:38 Probably can take GrDrawBatch here (and other Appe
joshualitt 2015/09/25 18:17:12 I can't unfortunately because lastBatch on GrDrawT
+ GrColor color,
const SkMatrix& viewMatrix,
const SkRect& rect,
SkScalar strokeWidth,

Powered by Google App Engine
This is Rietveld 408576698