Index: src/gpu/batches/GrClearBatch.h |
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h |
index 00a1c84de653cfb5d811fb2c2374444be990286a..1c9728ae7d6602d37f71cd8ba84ac511f8aec73d 100644 |
--- a/src/gpu/batches/GrClearBatch.h |
+++ b/src/gpu/batches/GrClearBatch.h |
@@ -18,8 +18,8 @@ class GrClearBatch final : public GrBatch { |
public: |
DEFINE_BATCH_CLASS_ID |
robertphillips
2016/08/11 16:51:53
Why not "sk_sp<GrClearBatch> Make(" ?
bsalomon
2016/08/11 17:51:28
Done. I thought it'd be more painful than it actua
|
- static sk_sp<GrBatch> Make(const SkIRect& rect, GrColor color, GrRenderTarget* rt) { |
- return sk_sp<GrBatch>(new GrClearBatch(rect, color, rt)); |
+ static GrClearBatch* Create(const SkIRect& rect, GrColor color, GrRenderTarget* rt) { |
+ return new GrClearBatch(rect, color, rt); |
} |
const char* name() const override { return "Clear"; } |
@@ -36,6 +36,8 @@ public: |
return string; |
} |
+ void setColor(GrColor color) { fColor = color; } |
+ |
private: |
GrClearBatch(const SkIRect& rect, GrColor color, GrRenderTarget* rt) |
: INHERITED(ClassID()) |