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

Unified Diff: Source/core/platform/graphics/BitmapImage.h

Issue 25976002: Remove ImageSource::bytesDecodedToDetermineProperties() and fallout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: For landing again, rebased Created 7 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 | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/BitmapImage.h
diff --git a/Source/core/platform/graphics/BitmapImage.h b/Source/core/platform/graphics/BitmapImage.h
index 3b3af0735cacb26c1e88ce7ae25ddeb23dbca829..5191a08009b580ece8166ff89a2f3af6cd015bfc 100644
--- a/Source/core/platform/graphics/BitmapImage.h
+++ b/Source/core/platform/graphics/BitmapImage.h
@@ -75,8 +75,6 @@ public:
virtual void stopAnimation() OVERRIDE;
virtual void resetAnimation() OVERRIDE;
- virtual unsigned decodedSize() const OVERRIDE;
-
virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE;
virtual bool currentFrameKnownToBeOpaque() OVERRIDE;
@@ -137,12 +135,6 @@ protected:
// Whether or not size is available yet.
bool isSizeAvailable();
- // Called after asking the source for any information that may require
- // decoding part of the image (e.g., the image size). We need to report
- // the partially decoded data to our observer so it has an accurate
- // account of the BitmapImage's memory usage.
- void didDecodeProperties() const;
-
// Animation.
int repetitionCount(bool imageKnownToBeComplete); // |imageKnownToBeComplete| should be set if the caller knows the entire image has been decoded.
bool shouldAnimate();
@@ -179,8 +171,6 @@ protected:
Color m_solidColor; // If we're a 1x1 solid color, this is the color to use to fill.
- unsigned m_decodedSize; // The current size of all decoded frames.
- mutable unsigned m_decodedPropertiesSize; // The size of data decoded by the source to determine image properties (e.g. size, frame count, etc).
size_t m_frameCount;
bool m_isSolidColor : 1; // Whether or not we are a 1x1 solid image.
« no previous file with comments | « no previous file | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698