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 --- include/gpu/GrRenderTargetContext.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/gpu/GrRenderTargetContext.h') diff --git a/include/gpu/GrRenderTargetContext.h b/include/gpu/GrRenderTargetContext.h index 93a3282b35..7ef572abce 100644 --- a/include/gpu/GrRenderTargetContext.h +++ b/include/gpu/GrRenderTargetContext.h @@ -382,13 +382,6 @@ public: bool isWrapped_ForTesting() const; - // These two methods return the worst case size of the backing GPU resource when it is - // finally allocated. In the approx-match case the allocated size could be smaller than - // what is reported by these entry points (i.e., Ganesh could, optionally, return an - // exact match) - int worstCaseWidth() const { return fRenderTargetProxy->worstCaseWidth(); } - int worstCaseHeight() const { return fRenderTargetProxy->worstCaseHeight(); } - protected: GrRenderTargetContext(GrContext*, GrDrawingManager*, sk_sp, sk_sp, const SkSurfaceProps* surfaceProps, GrAuditTrail*, -- cgit v1.2.3