aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
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();