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

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

Issue 2048003002: Remove DeferredImageDecoder::setEnabled and ImageDecoder::deferredImageDecodingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
index 1db14bf0f6cc4b0e1d6aadb64e4ea8feecf0cf0d..5600cc13cc12c8c73fd6a7088e16eafc53bf2852 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
@@ -55,8 +55,6 @@ public:
uint32_t m_uniqueID;
};
-bool DeferredImageDecoder::s_enabled = true;
-
PassOwnPtr<DeferredImageDecoder> DeferredImageDecoder::create(const SharedBuffer& data, ImageDecoder::AlphaOption alphaOption, ImageDecoder::GammaAndColorProfileOption colorOptions)
{
OwnPtr<ImageDecoder> actualDecoder = ImageDecoder::create(data, alphaOption, colorOptions);
@@ -85,16 +83,6 @@ DeferredImageDecoder::~DeferredImageDecoder()
{
}
-void DeferredImageDecoder::setEnabled(bool enabled)
-{
- s_enabled = enabled;
-}
-
-bool DeferredImageDecoder::enabled()
-{
- return s_enabled;
-}
-
String DeferredImageDecoder::filenameExtension() const
{
return m_actualDecoder ? m_actualDecoder->filenameExtension() : m_filenameExtension;
@@ -259,8 +247,7 @@ void DeferredImageDecoder::activateLazyDecoding()
void DeferredImageDecoder::prepareLazyDecodedFrames()
{
- if (!s_enabled
- || !m_actualDecoder
+ if (!m_actualDecoder
|| !m_actualDecoder->isSizeAvailable()
|| m_actualDecoder->filenameExtension() == "ico")
return;

Powered by Google App Engine
This is Rietveld 408576698