Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index d2c258d1d0760bd2244a3bc20f4438b4c5a49b68..3926739f19c185ea3d8dfecfe4749e98a31f9d8b 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -532,3 +532,9 @@ void GrClipTarget::purgeResources() { |
// get rid of them all. |
fClipMaskManager->purgeResources(); |
}; |
+ |
+void GrClipTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRenderTarget* rt) { |
+ GrBatch* batch = SkNEW_ARGS(GrClearStencilClipBatch, (rect, insideClip, rt)); |
+ this->onDrawBatch(batch); |
+ batch->unref(); |
+} |