aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrRenderTarget.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-08-30 16:44:40 -0400
committerGravatar Robert Phillips <robertphillips@google.com>2017-08-30 21:17:36 +0000
commitcb2e235e6fb5d9230c41ccf58b865c90ff928f67 (patch)
tree4506e0436973260c15513589347ad49cb8c48bb2 /include/gpu/GrRenderTarget.h
parentdff47afd5a5b91fff4435c5fe6f9392e20d2b3bf (diff)
Reduce stencil buffer clearing
TBR=bsalomon@google.com Bug: skia:6953 Change-Id: I079f90711297ee290f2d4011cfcb18b764554deb Reviewed-on: https://skia-review.googlesource.com/40691 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu/GrRenderTarget.h')
-rw-r--r--include/gpu/GrRenderTarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h
index 94b1875e2e..ff5eb0301d 100644
--- a/include/gpu/GrRenderTarget.h
+++ b/include/gpu/GrRenderTarget.h
@@ -25,6 +25,8 @@ class GrStencilAttachment;
*/
class GrRenderTarget : virtual public GrSurface {
public:
+ virtual bool alwaysClearStencil() const { return false; }
+
// GrSurface overrides
GrRenderTarget* asRenderTarget() override { return this; }
const GrRenderTarget* asRenderTarget() const override { return this; }