Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Unified Diff: tools/bench_pictures_main.cpp

Issue 84783002: SkDiscardableMemory::Factory class (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/DrawBitmapRectTest.cpp ('K') | « tests/DrawBitmapRectTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« tests/DrawBitmapRectTest.cpp ('K') | « tests/DrawBitmapRectTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698