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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 1918693007: Remove unused BitmapImage::m_hasUniformFrameSize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 | « third_party/WebKit/Source/platform/graphics/BitmapImage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 78511f31d29142eb28e38b71f05c9731c1ab2495..cfbcf13a6db24cbfc35a1d3c543b7c60480e9e08 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -67,7 +67,6 @@ BitmapImage::BitmapImage(ImageObserver* observer)
, m_allDataReceived(false)
, m_haveSize(false)
, m_sizeAvailable(false)
- , m_hasUniformFrameSize(true)
, m_haveFrameCount(false)
{
}
@@ -167,10 +166,6 @@ void BitmapImage::cacheFrame(size_t index)
m_frames[index].m_hasAlpha = m_source.frameHasAlphaAtIndex(index);
m_frames[index].m_frameBytes = m_source.frameBytesAtIndex(index);
- const IntSize frameSize(index ? m_source.frameSizeAtIndex(index) : m_size);
- if (frameSize != m_size)
- m_hasUniformFrameSize = false;
-
notifyMemoryChanged();
}
@@ -236,7 +231,6 @@ bool BitmapImage::dataChanged(bool allDataReceived)
m_source.setData(*data(), allDataReceived);
m_haveFrameCount = false;
- m_hasUniformFrameSize = true;
return isSizeAvailable();
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/BitmapImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698