aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrNonAAStrokeRectBatch.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-06 11:54:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-06 11:54:59 -0700
commita7d85ba138ee09739defbd277b04c479fdef82a6 (patch)
treeae5af2c5d489a22c9bb4331238cdd9fa6164ccd0 /src/gpu/batches/GrNonAAStrokeRectBatch.h
parent52fa668dc589501f5e48a7c5b1958882b86ff496 (diff)
Add gm that tests shaded stroked rectangles.
Fix GPU handling of previously untested cases. Move rect->path fallback from SkGpuDevice to GrDrawContext. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2125663003 Review-Url: https://codereview.chromium.org/2125663003
Diffstat (limited to 'src/gpu/batches/GrNonAAStrokeRectBatch.h')
-rw-r--r--src/gpu/batches/GrNonAAStrokeRectBatch.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.h b/src/gpu/batches/GrNonAAStrokeRectBatch.h
index 3cee47dedd..4d94337cc0 100644
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.h
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.h
@@ -14,6 +14,7 @@
class GrDrawBatch;
struct SkRect;
+class SkStrokeRec;
class SkMatrix;
namespace GrNonAAStrokeRectBatch {
@@ -21,15 +22,9 @@ namespace GrNonAAStrokeRectBatch {
GrDrawBatch* Create(GrColor color,
const SkMatrix& viewMatrix,
const SkRect& rect,
- SkScalar strokeWidth,
+ const SkStrokeRec&,
bool snapToPixelCenters);
-void Append(GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- SkScalar strokeWidth,
- bool snapToPixelCenters);
-
-};
+}
#endif