aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrAAStrokeRectOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/batches/GrAAStrokeRectOp.h')
-rw-r--r--src/gpu/batches/GrAAStrokeRectOp.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gpu/batches/GrAAStrokeRectOp.h b/src/gpu/batches/GrAAStrokeRectOp.h
new file mode 100644
index 0000000000..fe8f55c00a
--- /dev/null
+++ b/src/gpu/batches/GrAAStrokeRectOp.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrAAStrokeRectOp_DEFINED
+#define GrAAStrokeRectOp_DEFINED
+
+#include "GrColor.h"
+#include "SkRefCnt.h"
+
+class GrDrawOp;
+class SkMatrix;
+struct SkRect;
+class SkStrokeRec;
+
+namespace GrAAStrokeRectOp {
+
+sk_sp<GrDrawOp> MakeFillBetweenRects(GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& devOutside,
+ const SkRect& devInside);
+
+sk_sp<GrDrawOp> Make(GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkStrokeRec& stroke);
+}
+
+#endif