| Index: tools/bench_pictures_main.cpp
|
| diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp
|
| index 31d432daa93145a8d3b25889de6196b72e454f0e..424ab816238a65c3823587728c5dfc501378f609 100644
|
| --- a/tools/bench_pictures_main.cpp
|
| +++ b/tools/bench_pictures_main.cpp
|
| @@ -15,7 +15,7 @@
|
| #include "SkGraphics.h"
|
| #include "SkImageDecoder.h"
|
| #if LAZY_CACHE_STATS
|
| - #include "SkLazyPixelRef.h"
|
| + #include "SkDiscardablePixelRef.h"
|
| #endif
|
| #include "SkLruImageCache.h"
|
| #include "SkMath.h"
|
| @@ -197,9 +197,9 @@ static bool run_single_benchmark(const SkString& inputPath,
|
|
|
| #if LAZY_CACHE_STATS
|
| if (FLAGS_trackDeferredCaching) {
|
| - int32_t cacheHits = SkLazyPixelRef::GetCacheHits();
|
| - int32_t cacheMisses = SkLazyPixelRef::GetCacheMisses();
|
| - SkLazyPixelRef::ResetCacheStats();
|
| + int32_t cacheHits = SkDiscardablePixelRef::GetCacheHits();
|
| + int32_t cacheMisses = SkDiscardablePixelRef::GetCacheMisses();
|
| + SkDiscardablePixelRef::ResetCacheStats();
|
| SkString hitString;
|
| hitString.printf("Cache hit rate: %f\n", (double) cacheHits / (cacheHits + cacheMisses));
|
| gLogger.logProgress(hitString);
|
|
|