aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefromyuvtextures.cpp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-07-14 11:02:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-14 11:02:52 -0700
commit889579287770ba35156a73aa02d9ef5d2313c490 (patch)
tree7d9208a61c8895a1caf548232435fbcfd79b34c2 /gm/imagefromyuvtextures.cpp
parent3df1e2163f9d7afc997dc14c440fab31277bff5c (diff)
Rename backing texture testing routines
Diffstat (limited to 'gm/imagefromyuvtextures.cpp')
-rw-r--r--gm/imagefromyuvtextures.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp
index dbed06fa21..8dbfffd831 100644
--- a/gm/imagefromyuvtextures.cpp
+++ b/gm/imagefromyuvtextures.cpp
@@ -102,9 +102,10 @@ protected:
for (int i = 0; i < 3; ++i) {
SkASSERT(fYUVBmps[i].width() == SkToInt(fYUVBmps[i].rowBytes()));
- yuvIDs[i] = gpu->createBackendTexture(fYUVBmps[i].getPixels(),
- fYUVBmps[i].width(), fYUVBmps[i].height(),
- kAlpha_8_GrPixelConfig);
+ yuvIDs[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(),
+ fYUVBmps[i].width(),
+ fYUVBmps[i].height(),
+ kAlpha_8_GrPixelConfig);
}
context->resetContext();
}
@@ -117,7 +118,7 @@ protected:
}
for (int i = 0; i < 3; ++i) {
- gpu->deleteBackendTexture(yuvIDs[i]);
+ gpu->deleteTestingOnlyBackendTexture(yuvIDs[i]);
}
context->resetContext();