diff options
author | Greg Daniel <egdaniel@google.com> | 2017-10-09 15:06:20 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-10 16:45:43 +0000 |
commit | 834f12076f703c114173486de6470412d92f6506 (patch) | |
tree | 0cdbc645742e740f3934a96f2cb8b80e6fb62c6d /src/gpu/gl/GrGLGpu.h | |
parent | c5b94988915920ed359eecec34d4fbd6bdc0a3fd (diff) |
Set correct mip map status on GrTexture since we no longer require all mip data
Bug: skia:
Change-Id: I5074028f307187eef3201523cbd1ddc7d9bf9013
Reviewed-on: https://skia-review.googlesource.com/54102
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 000b56581d..20758c382c 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -224,7 +224,8 @@ private: // The texture parameters are cached in |initialTexParams|. bool createTextureImpl(const GrSurfaceDesc& desc, GrGLTextureInfo* info, bool renderTarget, GrGLTexture::TexParams* initialTexParams, - const GrMipLevel texels[], int mipLevelCount); + const GrMipLevel texels[], int mipLevelCount, + bool* wasFullMipMapDataProvided); bool onIsACopyNeededForTextureParams(GrTextureProxy*, const GrSamplerState&, GrTextureProducer::CopyParams*, @@ -391,7 +392,8 @@ private: bool uploadTexData(GrPixelConfig texConfig, int texWidth, int texHeight, GrSurfaceOrigin texOrigin, GrGLenum target, UploadType uploadType, int left, int top, int width, int height, GrPixelConfig dataConfig, - const GrMipLevel texels[], int mipLevelCount); + const GrMipLevel texels[], int mipLevelCount, + bool* wasFullMipMapDataProvided = nullptr); bool createRenderTargetObjects(const GrSurfaceDesc&, const GrGLTextureInfo& texInfo, GrGLRenderTarget::IDDesc*); |