Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 7c3ba0fb276af5d9b7e81bbc446a24ab1b78793d..326bfb1104487d967941ff702271a60620abdf78 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -172,7 +172,7 @@ static void set_random_gp(GrContext* context, |
GrDrawState* ds, |
SkRandom* random, |
GrTexture* dummyTextures[]) { |
- GrProgramElementRef<const GrGeometryProcessor> gp( |
+ SkAutoTUnref<const GrGeometryProcessor> gp( |
GrProcessorTestFactory<GrGeometryProcessor>::CreateStage(random, |
context, |
caps, |
@@ -228,7 +228,7 @@ static void set_random_color_coverage_stages(GrGpuGL* gpu, |
int currTextureCoordSet = 0; |
for (int s = 0; s < numProcs;) { |
- GrProgramElementRef<GrFragmentProcessor> fp( |
+ SkAutoTUnref<const GrFragmentProcessor> fp( |
GrProcessorTestFactory<GrFragmentProcessor>::CreateStage(random, |
gpu->getContext(), |
*gpu->caps(), |