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

Unified Diff: dm/DMSrcSink.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/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index c9178c06dc68dc888ab9e37456771dc194a31729..75f954f453e07e6d481d072e6cae8b3056b23307 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -8,7 +8,6 @@
#include "DMSrcSink.h"
#include "SamplePipeControllers.h"
#include "SkAndroidCodec.h"
-#include "SkBitmapRegionDecoderPriv.h"
#include "SkCodec.h"
#include "SkCommonFlags.h"
#include "SkData.h"
@@ -228,7 +227,7 @@ Name BRDSrc::name() const {
if (1 == fSampleSize) {
return SkOSPath::Basename(fPath.c_str());
}
- return get_scaled_name(fPath, get_scale_from_sample_size(fSampleSize));
+ return get_scaled_name(fPath, 1.0f / (float) fSampleSize);
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -761,7 +760,7 @@ Name AndroidCodecSrc::name() const {
if (1 == fSampleSize) {
return SkOSPath::Basename(fPath.c_str());
}
- return get_scaled_name(fPath, get_scale_from_sample_size(fSampleSize));
+ return get_scaled_name(fPath, 1.0f / (float) fSampleSize);
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
« bench/BitmapRegionDecoderBench.cpp ('K') | « dm/DM.cpp ('k') | gyp/bench.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698