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
This commit is contained in:
bsalomon@google.com 2013-03-11 20:33:45 +00:00
parent adef4fefd3
commit e3613cefe2
2 changed files with 4 additions and 4 deletions

View File

@ -363,7 +363,7 @@ int tool_main(int argc, char** argv) {
#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 tool_main(int argc, char** argv) {
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;

View File

@ -1181,7 +1181,7 @@ int tool_main(int argc, char** argv) {
#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 tool_main(int argc, char** argv) {
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;