| Index: Source/platform/graphics/ImageBuffer.h
|
| diff --git a/Source/platform/graphics/ImageBuffer.h b/Source/platform/graphics/ImageBuffer.h
|
| index 6468bde505f9977f8aea21c12b4406e0d5463d76..a8fb5639c3ba3c2dca8713a2a5acee53836ec0ad 100644
|
| --- a/Source/platform/graphics/ImageBuffer.h
|
| +++ b/Source/platform/graphics/ImageBuffer.h
|
| @@ -82,7 +82,8 @@ public:
|
| bool isExpensiveToPaint() const { return m_surface->isExpensiveToPaint(); }
|
| bool isSurfaceValid() const;
|
| bool restoreSurface() const;
|
| - void didDraw(const FloatRect& rect) const { m_surface->didDraw(rect); }
|
| + void didDraw(const FloatRect&) const;
|
| + bool isAnimated() const { return m_animationState == DidDrawAfterSnapshot; }
|
|
|
| void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQuality(filterQuality); }
|
| void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); }
|
| @@ -138,6 +139,12 @@ public:
|
| private:
|
| ImageBuffer(PassOwnPtr<ImageBufferSurface>);
|
|
|
| + enum AnimationState {
|
| + InitialAnimationState,
|
| + DidAcquireSnapshot,
|
| + DidDrawAfterSnapshot,
|
| + };
|
| + mutable AnimationState m_animationState;
|
| OwnPtr<ImageBufferSurface> m_surface;
|
| ImageBufferClient* m_client;
|
| };
|
|
|