aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-06 08:49:24 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-06 08:49:24 -0800
commitd0423587ac56ae84d3f1eb796d5c1e2dfba9646e (patch)
tree1bbbc8adbc1b63dc7dd19ffc08889be9a80b89c5 /gm
parent02c8fd0ad5e5279004dd49ec49fbae00f8522ec0 (diff)
One createTexture function, attempt to recycle scratch in createTexture.
Diffstat (limited to 'gm')
-rw-r--r--gm/texdata.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp
index 4644758344..a1b1e6efd7 100644
--- a/gm/texdata.cpp
+++ b/gm/texdata.cpp
@@ -84,8 +84,7 @@ protected:
desc.fConfig = kSkia8888_GrPixelConfig;
desc.fWidth = 2 * S;
desc.fHeight = 2 * S;
- GrTexture* texture =
- ctx->createUncachedTexture(desc, gTextureData.get(), 0);
+ GrTexture* texture = ctx->createTexture(desc, false, gTextureData.get(), 0);
if (!texture) {
return;