From fb5916486f562b45474fba86ed4bede15b83ef4a Mon Sep 17 00:00:00 2001 From: jvanverth Date: Fri, 29 Apr 2016 09:50:25 -0700 Subject: Don't mark mipmaps dirty if uploading > 1 levels BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1933293002 Review-Url: https://codereview.chromium.org/1933293002 --- src/gpu/gl/GrGLGpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/gl/GrGLGpu.h') diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index b6bc7baee7..5f3a751fee 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -309,7 +309,7 @@ private: // nullptr means whole target. Can be an empty rect. void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disableSRGB = false); // Handles cases where a surface will be updated without a call to flushRenderTarget - void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; + void didWriteToSurface(GrSurface*, const SkIRect* bounds, int mipLevels = 1) const; // Need not be called if flushRenderTarget is used. void flushViewport(const GrGLIRect&); -- cgit v1.2.3