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

Unified Diff: dm/DMSrcSink.cpp

Issue 2446543003: Differentiate animated image results (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 9efccd3042d692cbe5a5f101ac61f898b06133c7..06ca7507349b7e5cf05f34246c48a22a4b5eaec5 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -721,8 +721,13 @@ SkISize CodecSrc::size() const {
Name CodecSrc::name() const {
if (1.0f == fScale) {
- return SkOSPath::Basename(fPath.c_str());
+ Name name = SkOSPath::Basename(fPath.c_str());
+ if (fMode == kAnimated_Mode) {
+ name.append("_animated");
+ }
+ return name;
}
+ SkASSERT(fMode != kAnimated_Mode);
return get_scaled_name(fPath, fScale);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698