commit | 2c3398dc2675638d1c9daea4c1c7f8600230b8f0 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Wed Jun 19 11:58:01 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jun 20 13:38:05 2019 +0000 |
tree | 046f3737da73664d9abb619c0d3dd1631e317fad | |
parent | b520476ee6dcde51054d14c183c8e2c12c7602f5 [diff] [blame] |
Switch from querying swizzle on caps to using swizzles stored on proxies. Change-Id: I03f4a3affd6dda7a83bee8eec768dcaa93a6b801 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/220534 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrSurfaceContext.cpp b/src/gpu/GrSurfaceContext.cpp index c12cc2e..b2ca779 100644 --- a/src/gpu/GrSurfaceContext.cpp +++ b/src/gpu/GrSurfaceContext.cpp
@@ -548,6 +548,7 @@ SkASSERT(src->backendFormat().textureType() != GrTextureType::kExternal); SkASSERT(src->origin() == this->asSurfaceProxy()->origin()); + SkASSERT(src->config() == this->asSurfaceProxy()->config()); GrSurfaceProxy* dst = this->asSurfaceProxy();