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

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

Issue 388253004: Drawing an animated image to a canvas now behave as expected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/platform/graphics/BitmapImage.h
diff --git a/Source/platform/graphics/BitmapImage.h b/Source/platform/graphics/BitmapImage.h
index 9b2c9f851ea8e78067f2c3a5f0f138d703a932da..52803572392b5616a3870b2f1549b361c3b19910 100644
--- a/Source/platform/graphics/BitmapImage.h
+++ b/Source/platform/graphics/BitmapImage.h
@@ -83,6 +83,8 @@ public:
ImageOrientation currentFrameOrientation();
+ PassRefPtr<NativeImageSkia> frameAtIndex(size_t);
+
#if ASSERT_ENABLED
virtual bool notSolidColor() OVERRIDE;
#endif
@@ -107,7 +109,6 @@ protected:
size_t currentFrame() const { return m_currentFrame; }
size_t frameCount();
- PassRefPtr<NativeImageSkia> frameAtIndex(size_t);
bool frameIsCompleteAtIndex(size_t);
float frameDurationAtIndex(size_t);
bool frameHasAlphaAtIndex(size_t);

Powered by Google App Engine
This is Rietveld 408576698