From 9f129de595053a641828b73a8f563dcbae3f034d Mon Sep 17 00:00:00 2001 From: bsalomon Date: Wed, 10 Aug 2016 16:31:05 -0700 Subject: Add a full clear method to GrDrawTarget. This will allow us to avoid ClearBatch creation for successive clears. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2233043002 Review-Url: https://codereview.chromium.org/2233043002 --- src/gpu/GrDrawTarget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gpu/GrDrawTarget.h') diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 6149e922cb..60a1ec908c 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -121,6 +121,9 @@ public: const SkMatrix& viewMatrix, const GrPath*); + /** Clears the entire render target */ + void fullClear(GrRenderTarget*, GrColor color); + /** Discards the contents render target. */ void discard(GrRenderTarget*); -- cgit v1.2.3