From 784b7bf493c37236e3fe571aed6105939a9bc0c3 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Fri, 9 Dec 2016 13:35:02 -0500 Subject: Different approach to fixing gpu blurs on platforms that "useDrawInsteadOfClear" This CL reverts https://skia-review.googlesource.com/c/5148/ (Fix gpu blurring on platforms that "useDrawInsteadOfClear") (all the worstCaseWidth/Height stuff) and adds a new GrRenderTargetContext entry point (absClear) to specify clears that can't be discarded or altered. BUG=skia: Change-Id: I18b1373ecf4a153ca8c0f290ab8b1d00770426da Reviewed-on: https://skia-review.googlesource.com/5484 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- src/gpu/GrFixedClip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/GrFixedClip.cpp') diff --git a/src/gpu/GrFixedClip.cpp b/src/gpu/GrFixedClip.cpp index 9e87588a5d..79e26624d2 100644 --- a/src/gpu/GrFixedClip.cpp +++ b/src/gpu/GrFixedClip.cpp @@ -48,7 +48,7 @@ bool GrFixedClip::isRRect(const SkRect& rtBounds, SkRRect* rr, bool* aa) const { bool GrFixedClip::apply(GrContext*, GrRenderTargetContext* rtc, bool, bool, GrAppliedClip* out) const { if (fScissorState.enabled()) { - SkIRect tightScissor = SkIRect::MakeWH(rtc->worstCaseWidth(), rtc->worstCaseHeight()); + SkIRect tightScissor = SkIRect::MakeWH(rtc->width(), rtc->height()); if (!tightScissor.intersect(fScissorState.rect())) { return false; } -- cgit v1.2.3