Fix sign/unsigned warnings in benchmain.cpp and gmmain.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@8079 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 9c7b442..f90d963 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -363,7 +363,7 @@
 
 #if SK_SUPPORT_GPU
     struct {
-        size_t  fBytes;
+        int     fBytes;
         int     fCount;
     } gpuCacheSize = { -1, -1 }; // -1s mean use the default
 #endif
@@ -659,7 +659,7 @@
                 int count;
                 context->getTextureCacheLimits(&count, &bytes);
                 if (-1 != gpuCacheSize.fBytes) {
-                    bytes = gpuCacheSize.fBytes;
+                    bytes = static_cast<size_t>(gpuCacheSize.fBytes);
                 }
                 if (-1 != gpuCacheSize.fCount) {
                     count = gpuCacheSize.fCount;
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 160a983..0dbf044 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1181,7 +1181,7 @@
 
 #if SK_SUPPORT_GPU
     struct {
-        size_t  fBytes;
+        int     fBytes;
         int     fCount;
     } gpuCacheSize = { -1, -1 }; // -1s mean use the default
 #endif
@@ -1523,7 +1523,7 @@
                     int count;
                     gr->getTextureCacheLimits(&count, &bytes);
                     if (-1 != gpuCacheSize.fBytes) {
-                        bytes = gpuCacheSize.fBytes;
+                        bytes = static_cast<size_t>(gpuCacheSize.fBytes);
                     }
                     if (-1 != gpuCacheSize.fCount) {
                         count = gpuCacheSize.fCount;