robertphillips 2016-03-22 09:56:58 -07:00 committed by Commit bot
parent 0f5e41461a
commit d25d06bf5f

View File

@ -502,7 +502,8 @@ public:
desc.fWidth = subset.width();
desc.fHeight = subset.height();
GrTexture* subTx = ctx->textureProvider()->createTexture(desc, SkBudgeted::kYes);
SkAutoTUnref<GrTexture> subTx(ctx->textureProvider()->createTexture(desc,
SkBudgeted::kYes));
if (!subTx) {
return nullptr;
}