From 9f5143f9ae49a8e5fdb7ea626c4efad66096b020 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Tue, 15 Mar 2011 18:20:42 -0700 Subject: Implement partial screen invalidations bug:3461349 Change-Id: Id654d176c58027c67be7cb604b87c0ec68984525 --- WebCore/platform/graphics/android/LayerAndroid.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'WebCore/platform/graphics/android/LayerAndroid.h') diff --git a/WebCore/platform/graphics/android/LayerAndroid.h b/WebCore/platform/graphics/android/LayerAndroid.h index 3e00bfa..98a0a15 100644 --- a/WebCore/platform/graphics/android/LayerAndroid.h +++ b/WebCore/platform/graphics/android/LayerAndroid.h @@ -128,8 +128,8 @@ public: void setScale(float scale); float getScale() { return m_scale; } - virtual bool drawGL(SkMatrix&); - bool drawChildrenGL(SkMatrix&); + virtual bool drawGL(GLWebViewState*, SkMatrix&); + bool drawChildrenGL(GLWebViewState*, SkMatrix&); virtual void paintBitmapGL(); void updateGLPositions(const TransformationMatrix& parentMatrix, const FloatRect& clip, float opacity); @@ -182,9 +182,10 @@ public: void addAnimation(PassRefPtr anim); void removeAnimationsForProperty(AnimatedPropertyID property); void removeAnimationsForKeyframes(const String& name); - bool evaluateAnimations() const; - bool evaluateAnimations(double time) const; + bool evaluateAnimations(); + bool evaluateAnimations(double time); bool hasAnimations() const; + void addDirtyArea(GLWebViewState*); SkPicture* picture() const { return m_recordingPicture; } @@ -325,6 +326,9 @@ private: bool m_dirty; unsigned int m_pictureUsed; + // used to signal the framework we need a repaint + bool m_hasRunningAnimations; + // painting request sent bool m_requestSent; -- cgit v1.1