Simplify random_draw_context used by GLProgramsTest

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2165683002

Review-Url: https://codereview.chromium.org/2165683002
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 171ed61..16a2592 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -154,33 +154,12 @@
                                                 : kBottomLeft_GrSurfaceOrigin;
     int sampleCnt = random->nextBool() ? SkTMin(4, caps->maxSampleCount()) : 0;
 
-    GrUniqueKey key;
-    static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain();
-    GrUniqueKey::Builder builder(&key, kDomain, 2);
-    builder[0] = origin;
-    builder[1] = sampleCnt;
-    builder.finish();
-
-    sk_sp<GrTexture> texture(context->textureProvider()->findAndRefTextureByUniqueKey(key));
-    if (texture) {
-        sk_sp<GrRenderTarget> rt(sk_ref_sp(texture->asRenderTarget()));
-        return context->drawContext(std::move(rt));
-    }
-
     sk_sp<GrDrawContext> drawContext(context->newDrawContext(SkBackingFit::kExact,
                                                              kRenderTargetWidth,
                                                              kRenderTargetHeight,
                                                              kRGBA_8888_GrPixelConfig,
                                                              sampleCnt,
                                                              origin));
-    if (!drawContext) {
-        return nullptr;
-    }
-
-    // TODO: need a real way to do this via the drawContext
-    texture = drawContext->asTexture();
-    context->textureProvider()->assignUniqueKeyToTexture(key, texture.get());
-
     return drawContext;
 }