aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrPorterDuffTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-11-10 11:54:56 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-10 11:54:57 -0800
commit091f60c2a0e4504c017b8a67ff96a0e829519b14 (patch)
treeb77c149adc2d855b7aaf62c53398f9213ccedf20 /tests/GrPorterDuffTest.cpp
parent6dfe9ac3aad3ab8ec3a0f1684c94fef0c6ad9c3e (diff)
Use a struct for client GL texture handles
Diffstat (limited to 'tests/GrPorterDuffTest.cpp')
-rw-r--r--tests/GrPorterDuffTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/GrPorterDuffTest.cpp b/tests/GrPorterDuffTest.cpp
index a61ab5484b..d984f92142 100644
--- a/tests/GrPorterDuffTest.cpp
+++ b/tests/GrPorterDuffTest.cpp
@@ -1164,10 +1164,12 @@ static void test_no_dual_source_blending(skiatest::Reporter* reporter) {
return;
}
+ GrBackendObject backendTex =
+ ctx->getGpu()->createTestingOnlyBackendTexture(nullptr, 100, 100, kRGBA_8888_GrPixelConfig);
GrBackendTextureDesc fakeDesc;
fakeDesc.fConfig = kRGBA_8888_GrPixelConfig;
fakeDesc.fWidth = fakeDesc.fHeight = 100;
- fakeDesc.fTextureHandle = 1;
+ fakeDesc.fTextureHandle = backendTex;
SkAutoTUnref<GrTexture> fakeTexture(ctx->textureProvider()->wrapBackendTexture(fakeDesc,
kBorrow_GrWrapOwnership));
GrXferProcessor::DstTexture fakeDstTexture;
@@ -1213,6 +1215,7 @@ static void test_no_dual_source_blending(skiatest::Reporter* reporter) {
}
}
}
+ ctx->getGpu()->deleteTestingOnlyBackendTexture(backendTex);
}
#endif