Fix a GrThreadSafeUniquelyKeyedProxyViewCache test

I broke this when I switched over to the SkTDynamicHash

Bug: 1108408
Change-Id: I906b41330440d084ba2e97c0162af38a79da0529
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/318696
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/GrThreadSafeViewCacheTest.cpp b/tests/GrThreadSafeViewCacheTest.cpp
index 2420323..91eba8a 100644
--- a/tests/GrThreadSafeViewCacheTest.cpp
+++ b/tests/GrThreadSafeViewCacheTest.cpp
@@ -380,9 +380,9 @@
     int size = 16;
     helper.accessCachedView(helper.ddlCanvas1(), size);
 
-    int initialCount = threadSafeViewCache->count();
+    size_t initialSize = threadSafeViewCache->approxBytesUsedForHash();
 
-    while (initialCount == threadSafeViewCache->count()) {
+    while (initialSize == threadSafeViewCache->approxBytesUsedForHash()) {
         size *= 2;
         helper.accessCachedView(helper.ddlCanvas1(), size);
     }