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

Unified Diff: third_party/gif/SkGifImageReader.h

Issue 2447863002: Report repetition count in SkCodec (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
Index: third_party/gif/SkGifImageReader.h
diff --git a/third_party/gif/SkGifImageReader.h b/third_party/gif/SkGifImageReader.h
index 5dc0e4f6dde776af41c4303752dfd7c3850542ed..3a73288f2909961a8a9543b61c5012c294b99838 100644
--- a/third_party/gif/SkGifImageReader.h
+++ b/third_party/gif/SkGifImageReader.h
@@ -61,7 +61,6 @@ typedef SkTArray<unsigned char, true> GIFRow;
#define MAX_COLORS 256
#define BYTES_PER_COLORMAP_ENTRY 3
-constexpr int cLoopCountNotSeen = -2;
constexpr size_t kNotFound = static_cast<size_t>(-1);
// List of possible parsing states.
@@ -285,7 +284,7 @@ public:
, m_version(0)
, m_screenWidth(0)
, m_screenHeight(0)
- , m_loopCount(cLoopCountNotSeen)
+ , m_loopCount(0)
, m_streamBuffer(stream)
, m_parseCompleted(false)
, m_firstFrameHasAlpha(false)

Powered by Google App Engine
This is Rietveld 408576698