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

Unified Diff: dm/DM.cpp

Issue 2447863002: Report repetition count in SkCodec (Closed)
Patch Set: Return a bool, with multiple out parameters 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 | dm/DMSrcSink.cpp » ('j') | include/codec/SkCodec.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 42922c2c0bec14e56c38e15881f5f985e38246b4..be33a5eb5f09e26190032425980b6fb909530644 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -590,8 +590,8 @@ static void push_codec_srcs(Path path) {
}
{
- std::vector<SkCodec::FrameInfo> frameInfos = codec->getFrameInfo();
- if (frameInfos.size() > 1) {
+ std::vector<SkCodec::FrameInfo> frameInfos;
+ if (codec->getFrameInfo(&frameInfos, nullptr) && frameInfos.size() > 1) {
push_codec_src(path, CodecSrc::kAnimated_Mode, CodecSrc::kGetFromCanvas_DstColorType,
kPremul_SkAlphaType, 1.0f);
}
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | include/codec/SkCodec.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698