aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuCommandBuffer.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-04-27 12:09:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-01 11:59:14 +0000
commit4912d903b9bf32b6b929c2291a0384b634ca3473 (patch)
treea57805537ff52f14992705cda6edcad3e2ba5e11 /src/gpu/GrGpuCommandBuffer.cpp
parentc353ee211fc99c0bf2035f9e77f87fd67b3c19c5 (diff)
Alter the decimation portion of Ganesh's GaussianBlur method
This CL doesn't change any GMs for me locally but (because of the backingFit and clipRect changes) it has the possibility of doing so. Change-Id: Iaa1ad9baf420624d118bf1b12d8bac726218274d Reviewed-on: https://skia-review.googlesource.com/124283 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.cpp')
-rw-r--r--src/gpu/GrGpuCommandBuffer.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.cpp b/src/gpu/GrGpuCommandBuffer.cpp
index 654f7009be..4dfc334d7a 100644
--- a/src/gpu/GrGpuCommandBuffer.cpp
+++ b/src/gpu/GrGpuCommandBuffer.cpp
@@ -17,13 +17,8 @@
#include "SkRect.h"
void GrGpuRTCommandBuffer::clear(const GrFixedClip& clip, GrColor color) {
-#ifdef SK_DEBUG
- GrRenderTarget* rt = fRenderTarget;
- SkASSERT(rt);
- SkASSERT(!clip.scissorEnabled() ||
- (SkIRect::MakeWH(rt->width(), rt->height()).contains(clip.scissorRect()) &&
- SkIRect::MakeWH(rt->width(), rt->height()) != clip.scissorRect()));
-#endif
+ SkASSERT(fRenderTarget);
+
this->onClear(clip, color);
}