diff options
author | 2016-08-10 16:31:05 -0700 | |
---|---|---|
committer | 2016-08-10 16:31:06 -0700 | |
commit | 9f129de595053a641828b73a8f563dcbae3f034d (patch) | |
tree | 88a68d85d24856c73c879769c444ca88154e0b8f /src/gpu/GrDrawTarget.h | |
parent | 0cbe77c383a1c829341b27df1a9219bc33524440 (diff) |
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
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
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*); |