diff options
author | 2017-06-23 14:09:30 -0400 | |
---|---|---|
committer | 2017-06-26 15:29:18 +0000 | |
commit | 8744405448b9402e1368aebd321c4f555543301a (patch) | |
tree | b5df1fbe70897eca74072f9c5b9920977c817d36 /src/image/SkImage_Gpu.cpp | |
parent | 6945c946ea800b7bff31920914a990c88a706718 (diff) |
Remove SkImage_Base::peekTexture call
Change-Id: Ie5b6bec8df083e0a128aa234d80f5a214cd98f0d
Reviewed-on: https://skia-review.googlesource.com/20741
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/image/SkImage_Gpu.cpp')
-rw-r--r-- | src/image/SkImage_Gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp index 41990e842b..4e8b28bc74 100644 --- a/src/image/SkImage_Gpu.cpp +++ b/src/image/SkImage_Gpu.cpp @@ -454,8 +454,8 @@ sk_sp<SkImage> SkImage::makeTextureImage(GrContext* context, SkColorSpace* dstCo if (!context) { return nullptr; } - if (GrTexture* peek = as_IB(this)->peekTexture()) { - return peek->getContext() == context ? sk_ref_sp(const_cast<SkImage*>(this)) : nullptr; + if (GrContext* incumbent = as_IB(this)->context()) { + return incumbent == context ? sk_ref_sp(const_cast<SkImage*>(this)) : nullptr; } if (this->isLazyGenerated()) { |