aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Khushal <khushalsagar@chromium.org>2018-06-26 14:38:34 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-27 01:08:45 +0000
commitc421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch)
treeae029083d130acb979f9e1c15c862f6436908d7b /gm
parentef12509ff2668027664308653ced36039af800ad (diff)
gpu: Expose GrContextPriv::abandoned in the public API.
TBR=bsalomon@google.com Bug: 854416 Change-Id: Iab71ca6e4724a925b0b9791267aac5ddc34f5b15 Reviewed-on: https://skia-review.googlesource.com/137692 Reviewed-by: Khusal Sagar <khushalsagar@chromium.org> Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>
Diffstat (limited to 'gm')
-rw-r--r--gm/imagefromyuvtextures.cpp4
-rw-r--r--gm/rectangletexture.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp
index 87ab51ec1d..9d72cc05fc 100644
--- a/gm/imagefromyuvtextures.cpp
+++ b/gm/imagefromyuvtextures.cpp
@@ -94,7 +94,7 @@ protected:
}
void createYUVTextures(GrContext* context, GrBackendTexture yuvTextures[3]) {
- if (context->contextPriv().abandoned()) {
+ if (context->abandoned()) {
return;
}
@@ -115,7 +115,7 @@ protected:
}
void deleteYUVTextures(GrContext* context, GrBackendTexture yuvTextures[3]) {
- if (context->contextPriv().abandoned()) {
+ if (context->abandoned()) {
return;
}
diff --git a/gm/rectangletexture.cpp b/gm/rectangletexture.cpp
index d6bf1fb87e..c22e420d68 100644
--- a/gm/rectangletexture.cpp
+++ b/gm/rectangletexture.cpp
@@ -60,7 +60,7 @@ protected:
if (!context) {
return nullptr;
}
- if (context->contextPriv().abandoned()) {
+ if (context->abandoned()) {
return nullptr;
}
GrGpu* gpu = context->contextPriv().getGpu();