Index: tests/ScaledImageCache.cpp |
diff --git a/tests/ScaledImageCache.cpp b/tests/ScaledImageCache.cpp |
index d5b7060be4355ed7fb509eb7adb8c9ac0c63779f..276a3cc17a4549b1d39d09af1277ab0b576a88a8 100644 |
--- a/tests/ScaledImageCache.cpp |
+++ b/tests/ScaledImageCache.cpp |
@@ -17,12 +17,7 @@ static bool is_in_scaled_image_cache(const SkBitmap& orig, |
SkScalar xScale, |
SkScalar yScale) { |
SkBitmap scaled; |
- SkScaledImageCache::ID* id = SkBitmapCache::FindAndLock( |
- orig, SkScalarInvert(xScale), SkScalarInvert(yScale), &scaled); |
- if (id) { |
- SkScaledImageCache::Unlock(id); |
- } |
- return id != NULL; |
+ return SkBitmapCache::Find(orig, SkScalarInvert(xScale), SkScalarInvert(yScale), &scaled); |
} |
// Draw a scaled bitmap, then return true iff it has been cached. |