Remove GrContext from GrClipMaskCache

Review URL: https://codereview.chromium.org/1144013007
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp
index 71d0380..c0ff763 100644
--- a/tests/ClipCacheTest.cpp
+++ b/tests/ClipCacheTest.cpp
@@ -17,7 +17,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 // note: this is unused
-static GrTexture* createTexture(GrContext* context) {
+static GrTexture* create_texture(GrContext* context) {
     unsigned char textureData[X_SIZE][Y_SIZE][4];
 
     memset(textureData, 0, 4* X_SIZE * Y_SIZE);
@@ -133,11 +133,9 @@
 static void test_cache(skiatest::Reporter* reporter, GrContext* context) {
 
     if (false) { // avoid bit rot, suppress warning
-        createTexture(context);
+        create_texture(context);
     }
-    GrClipMaskCache cache;
-
-    cache.setContext(context);
+    GrClipMaskCache cache(context->resourceProvider());
 
     // check initial state
     check_empty_state(reporter, cache);