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

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

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 years, 9 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/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index 2ea18db20b0bcb30c31809348eb026f48b558392..55239ff266bef1e92c5496bff4674c92151cf9be 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -82,7 +82,7 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
ImageAnimationPolicy animationPolicy() override { return m_animationPolicy; }
void advanceTime(double deltaTimeInSeconds) override;
- sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
+ sk_sp<SkImage> imageForCurrentFrame() override;
PassRefPtr<Image> imageForDefaultFrame() override;
bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override;
@@ -120,14 +120,14 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
size_t currentFrame() const { return m_currentFrame; }
size_t frameCount();
- sk_sp<SkImage> frameAtIndex(size_t, const ColorBehavior&);
+ sk_sp<SkImage> frameAtIndex(size_t);
bool frameIsCompleteAtIndex(size_t) const;
float frameDurationAtIndex(size_t) const;
bool frameHasAlphaAtIndex(size_t);
ImageOrientation frameOrientationAtIndex(size_t);
- sk_sp<SkImage> decodeAndCacheFrame(size_t index, const ColorBehavior&);
+ sk_sp<SkImage> decodeAndCacheFrame(size_t index);
void updateSize() const;
// Returns the total number of bytes allocated for all framebuffers, i.e.
@@ -191,8 +191,6 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
sk_sp<SkImage>
m_cachedFrame; // A cached copy of the most recently-accessed frame.
size_t m_cachedFrameIndex; // Index of the frame that is cached.
- ColorBehavior m_cachedFrameColorBehavior; // Color behavior that created the
- // cached frame.
std::unique_ptr<Timer<BitmapImage>> m_frameTimer;
int m_repetitionCount; // How many total animation loops we should do. This

Powered by Google App Engine
This is Rietveld 408576698