Index: tests/GrPorterDuffTest.cpp |
diff --git a/tests/GrPorterDuffTest.cpp b/tests/GrPorterDuffTest.cpp |
index 845dae16e43f6573bd22f2f46ac49cb3cdf7c377..719f787d1dd6f5713864aeb8628985320e172b9e 100644 |
--- a/tests/GrPorterDuffTest.cpp |
+++ b/tests/GrPorterDuffTest.cpp |
@@ -1161,16 +1161,14 @@ DEF_GPUTEST(PorterDuffNoDualSourceBlending, reporter, /*factory*/) { |
} |
GrBackendObject backendTex = |
- ctx->getGpu()->createTestingOnlyBackendTexture(nullptr, 100, 100, |
- kRGBA_8888_GrPixelConfig); |
+ ctx->getGpu()->createTestingOnlyBackendTexture(nullptr, 100, 100, kRGBA_8888_GrPixelConfig); |
GrBackendTextureDesc fakeDesc; |
fakeDesc.fConfig = kRGBA_8888_GrPixelConfig; |
fakeDesc.fWidth = fakeDesc.fHeight = 100; |
fakeDesc.fTextureHandle = backendTex; |
- SkAutoTUnref<GrTexture> fakeTexture(ctx->textureProvider()->wrapBackendTexture(fakeDesc, |
- kBorrow_GrWrapOwnership)); |
GrXferProcessor::DstTexture fakeDstTexture; |
- fakeDstTexture.setTexture(fakeTexture); |
+ fakeDstTexture.setTexture( |
+ ctx->textureProvider()->wrapBackendTexture(fakeDesc, kBorrow_GrWrapOwnership)); |
static const GrColor testColors[] = { |
0, |