diff options
author | 2015-08-13 13:34:48 -0700 | |
---|---|---|
committer | 2015-08-13 13:34:48 -0700 | |
commit | abd30f54b7ff1704a8930c4307ea242d09425d02 (patch) | |
tree | 08eb5fdaa2fbe55f2e763a1d3c05054896919b68 /src/gpu/batches/GrAAStrokeRectBatch.h | |
parent | 8f34372f7e97482e5e61ab298b7edaa008ba2f4c (diff) |
Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches
Review URL: https://codereview.chromium.org/1293583002
Diffstat (limited to 'src/gpu/batches/GrAAStrokeRectBatch.h')
-rw-r--r-- | src/gpu/batches/GrAAStrokeRectBatch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.h b/src/gpu/batches/GrAAStrokeRectBatch.h index 7fa15f5326..b6fb89f502 100644 --- a/src/gpu/batches/GrAAStrokeRectBatch.h +++ b/src/gpu/batches/GrAAStrokeRectBatch.h @@ -14,7 +14,7 @@ #include "SkMatrix.h" #include "SkRect.h" -class GrAAStrokeRectBatch : public GrBatch { +class GrAAStrokeRectBatch : public GrVertexBatch { public: // TODO support AA rotated stroke rects by copying around view matrices struct Geometry { @@ -25,7 +25,7 @@ public: bool fMiterStroke; }; - static GrBatch* Create(const Geometry& geometry, const SkMatrix& viewMatrix) { + static GrDrawBatch* Create(const Geometry& geometry, const SkMatrix& viewMatrix) { return SkNEW_ARGS(GrAAStrokeRectBatch, (geometry, viewMatrix)); } |