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

Unified Diff: dm/DM.cpp

Issue 1443033002: Remove dependency on src/android from dm and nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 2587b0da08724eb5f5c7d0dd2c7768985ec3801a..403252b03d7e3d205d086df4dc5839dc6dd99fbc 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -12,7 +12,6 @@
#include "OverwriteLine.h"
#include "ProcStats.h"
#include "SkBBHFactory.h"
-#include "SkBitmapRegionDecoderPriv.h"
#include "SkChecksum.h"
#include "SkCodec.h"
#include "SkCommonFlags.h"
@@ -285,7 +284,7 @@ static void push_android_codec_src(Path path, AndroidCodecSrc::Mode mode,
}
if (1 != sampleSize) {
- folder.appendf("_%.3f", get_scale_from_sample_size(sampleSize));
+ folder.appendf("_%.3f", 1.0f / (float) sampleSize);
}
AndroidCodecSrc* src = new AndroidCodecSrc(path, mode, dstColorType, sampleSize);
@@ -441,7 +440,7 @@ static void push_brd_src(Path path, SkBitmapRegionDecoder::Strategy strategy,
}
if (1 != sampleSize) {
- folder.appendf("_%.3f", get_scale_from_sample_size(sampleSize));
+ folder.appendf("_%.3f", 1.0f / (float) sampleSize);
}
BRDSrc* src = new BRDSrc(path, strategy, mode, dstColorType, sampleSize);

Powered by Google App Engine
This is Rietveld 408576698