Disable deferred gpu resources for Chrome branch

Chrome's branch is coming up and it seems unlikely that I will be able to push instantiation all the way to flush time (where failure will be easier to deal with) before then. This CL should silence the P1 bug but could introduce layout test diffs.

Ideally this wouldn't land until after: https://codereview.chromium.org/2718353004/ (Add flag for upcoming Skia change) so the layout test differences will be visible on the DEPS roll

BUG=688811

Change-Id: I86c42ee02e6672834353aa7126b00ed4f3521948
Reviewed-on: https://skia-review.googlesource.com/9064
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/ProxyRefTest.cpp b/tests/ProxyRefTest.cpp
index 6cd4cb0..3a72acb 100644
--- a/tests/ProxyRefTest.cpp
+++ b/tests/ProxyRefTest.cpp
@@ -15,8 +15,6 @@
 #include "GrRenderTargetPriv.h"
 #include "GrRenderTargetProxy.h"
 
-static const int kWidthHeight = 128;
-
 int32_t GrIORefProxy::getProxyRefCnt_TestOnly() const {
     return fRefCnt;
 }
@@ -47,6 +45,10 @@
     return fPendingWrites;
 }
 
+#ifndef SK_DISABLE_DEFERRED_PROXIES
+
+static const int kWidthHeight = 128;
+
 static void check_refs(skiatest::Reporter* reporter,
                        GrSurfaceProxy* proxy,
                        int32_t expectedProxyRefs,
@@ -71,7 +73,8 @@
     desc.fHeight = kWidthHeight;
     desc.fConfig = kRGBA_8888_GrPixelConfig;
 
-    return GrSurfaceProxy::MakeDeferred(caps, desc, SkBackingFit::kApprox, SkBudgeted::kYes);
+    return GrSurfaceProxy::MakeDeferred(provider, caps, desc,
+                                        SkBackingFit::kApprox, SkBudgeted::kYes);
 }
 
 static sk_sp<GrSurfaceProxy> make_wrapped(const GrCaps& caps, GrTextureProvider* provider) {
@@ -203,5 +206,6 @@
         }
     }
 }
+#endif
 
 #endif