aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpuCommandBuffer.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 /src/gpu/gl/GrGLGpuCommandBuffer.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 'src/gpu/gl/GrGLGpuCommandBuffer.h')
-rw-r--r--src/gpu/gl/GrGLGpuCommandBuffer.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gpu/gl/GrGLGpuCommandBuffer.h b/src/gpu/gl/GrGLGpuCommandBuffer.h
index cfcde79d58..049db5da64 100644
--- a/src/gpu/gl/GrGLGpuCommandBuffer.h
+++ b/src/gpu/gl/GrGLGpuCommandBuffer.h
@@ -61,15 +61,7 @@ public:
~GrGLGpuRTCommandBuffer() override {}
- void begin() override {
- if (GrLoadOp::kClear == fColorLoadAndStoreInfo.fLoadOp) {
- fGpu->clear(GrFixedClip::Disabled(), fColorLoadAndStoreInfo.fClearColor,
- fRenderTarget, fOrigin);
- }
- if (GrLoadOp::kClear == fStencilLoadAndStoreInfo.fLoadOp) {
- fGpu->clearStencil(fRenderTarget, 0x0);
- }
- }
+ void begin() override;
void end() override {}
void discard() override { }