diff options
author | 2016-04-29 09:50:25 -0700 | |
---|---|---|
committer | 2016-04-29 09:50:25 -0700 | |
commit | fb5916486f562b45474fba86ed4bede15b83ef4a (patch) | |
tree | bfc1894ea28dd24121a54bcf1f19d7c3199a7f6b /src/gpu/gl/GrGLGpu.h | |
parent | 69deca8d1e57daec540f8a7f10d9c660b640b9a9 (diff) |
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
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
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&); |