aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefromyuvtextures.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-01-08 14:53:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-08 20:23:31 +0000
commit579f094f1259931c30dfd1623e8e22d74b4a7531 (patch)
tree03995e86a274aea4bad096ec7bbfe247a465a707 /gm/imagefromyuvtextures.cpp
parent1afd4cdb0800e2e395b465da24eb71e0e834dafa (diff)
Fix build
This fixes two issues with https://skia-review.googlesource.com/c/skia/+/91501: 1) The .fp files weren't updated to handle the move of proxyProvider to GrContextPriv 2) There were some missing guards for abandoned context's in the proxyprovider Change-Id: I2a704ff2aec5f8f9a7ebaab9b8632abb5cf2e42c Reviewed-on: https://skia-review.googlesource.com/92084 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'gm/imagefromyuvtextures.cpp')
-rw-r--r--gm/imagefromyuvtextures.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp
index 72100c2a56..6334611666 100644
--- a/gm/imagefromyuvtextures.cpp
+++ b/gm/imagefromyuvtextures.cpp
@@ -118,7 +118,9 @@ protected:
}
for (int i = 0; i < 3; ++i) {
- gpu->deleteTestingOnlyBackendTexture(&yuvTextures[i]);
+ if (yuvTextures[i].isValid()) {
+ gpu->deleteTestingOnlyBackendTexture(&yuvTextures[i]);
+ }
}
context->resetContext();