diff options
author | Greg Daniel <egdaniel@google.com> | 2018-02-12 12:07:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-12 18:51:28 +0000 |
commit | d2d8e92e5e6014b746e9928a8ffc1ba4b95cb016 (patch) | |
tree | f93946c1835903aebed7c8c019774e2c28909ac3 /include/private/GrSurfaceProxy.h | |
parent | 82040a9a056cd830027e255c7da845dcb5c026ed (diff) |
Remove tracking of SkDestinationSurfaceColorMode on GrTextureProxy for mips
When we create a new surface from a proxy we were always using legacy and
when we wrapped an existing surface we never actaully had to use the value
we pulled off of it since the proxy was already instantiatied.
Bug: skia:
Change-Id: Ifcb5f3ac2f1dcf41b01a98c554d682ae57028d5a
Reviewed-on: https://skia-review.googlesource.com/106207
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/private/GrSurfaceProxy.h')
-rw-r--r-- | include/private/GrSurfaceProxy.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h index 6bfb700a0f..daff54798f 100644 --- a/include/private/GrSurfaceProxy.h +++ b/include/private/GrSurfaceProxy.h @@ -391,12 +391,10 @@ protected: void assign(sk_sp<GrSurface> surface); sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, bool needsStencil, - GrSurfaceFlags flags, GrMipMapped mipMapped, - SkDestinationSurfaceColorMode mipColorMode) const; + GrSurfaceFlags flags, GrMipMapped mipMapped) const; bool instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, bool needsStencil, - GrSurfaceFlags flags, GrMipMapped mipMapped, - SkDestinationSurfaceColorMode mipColorMode, const GrUniqueKey*); + GrSurfaceFlags flags, GrMipMapped mipMapped, const GrUniqueKey*); private: // For wrapped resources, 'fConfig', 'fWidth', 'fHeight', and 'fOrigin; will always be filled in |