diff options
author | 2012-09-05 17:40:04 +0000 | |
---|---|---|
committer | 2012-09-05 17:40:04 +0000 | |
commit | 100abf49e10544bc4f436bf1f38e6929779621f4 (patch) | |
tree | 4ae7d19bebf5b7d79f646cfa25ed1560330004fe /tests | |
parent | 1f45e934b68a5985b2127ec871ff593c3bfc7c2e (diff) |
Shut up some Mac (xcode 3) warnings
Review URL: http://codereview.appspot.com/6503053/
git-svn-id: http://skia.googlecode.com/svn/trunk@5402 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ClipStackTest.cpp | 2 | ||||
-rw-r--r-- | tests/DeferredCanvasTest.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp index 19e28ad647..8a74dc8712 100644 --- a/tests/ClipStackTest.cpp +++ b/tests/ClipStackTest.cpp @@ -354,7 +354,7 @@ static void test_isWideOpen(skiatest::Reporter* reporter) { } } -int count(const SkClipStack& stack) { +static int count(const SkClipStack& stack) { SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp index 5eda56832f..95b3f7353c 100644 --- a/tests/DeferredCanvasTest.cpp +++ b/tests/DeferredCanvasTest.cpp @@ -260,7 +260,7 @@ static void TestDeferredCanvasBitmapCaching(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, canvas.storageAllocatedForRecording() > bitmapSize); // verify that nothing can be freed at this point - REPORTER_ASSERT(reporter, 0 == canvas.freeMemoryIfPossible(~0)); + REPORTER_ASSERT(reporter, 0 == canvas.freeMemoryIfPossible(~0U)); // verify that flush leaves image in cache REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount); @@ -271,7 +271,7 @@ static void TestDeferredCanvasBitmapCaching(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, canvas.storageAllocatedForRecording() >= bitmapSize); // verify that after a flush, cached image can be freed - REPORTER_ASSERT(reporter, canvas.freeMemoryIfPossible(~0) >= bitmapSize); + REPORTER_ASSERT(reporter, canvas.freeMemoryIfPossible(~0U) >= bitmapSize); // Verify that caching works for avoiding multiple copies of the same bitmap canvas.drawBitmap(sourceImages[0], 0, 0, NULL); @@ -294,18 +294,18 @@ static void TestDeferredCanvasBitmapCaching(skiatest::Reporter* reporter) { // Verifiy that partial purge works, image zero is in cache but not reffed by // a pending draw, while image 1 is locked-in. - canvas.freeMemoryIfPossible(~0); + canvas.freeMemoryIfPossible(~0U); REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount); canvas.drawBitmap(sourceImages[0], 0, 0, NULL); canvas.flush(); canvas.drawBitmap(sourceImages[1], 0, 0, NULL); - bytesFreed = canvas.freeMemoryIfPossible(~0); + bytesFreed = canvas.freeMemoryIfPossible(~0U); // only one bitmap should have been freed. REPORTER_ASSERT(reporter, bytesFreed >= bitmapSize); REPORTER_ASSERT(reporter, bytesFreed < 2*bitmapSize); // Clear for next test canvas.flush(); - canvas.freeMemoryIfPossible(~0); + canvas.freeMemoryIfPossible(~0U); REPORTER_ASSERT(reporter, canvas.storageAllocatedForRecording() < bitmapSize); // Verify the image cache is sensitive to genID bumps |