summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/LayerAndroid.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r--Source/WebCore/platform/graphics/android/LayerAndroid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h
index 8ad52e0..a28f1e7 100644
--- a/Source/WebCore/platform/graphics/android/LayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h
@@ -27,6 +27,7 @@
#include "RefPtr.h"
#include "SkBitmap.h"
#include "SkColor.h"
+#include "SkRegion.h"
#include "SkStream.h"
#include "TextureOwner.h"
#include "TransformationMatrix.h"
@@ -237,6 +238,11 @@ public:
void needsRepaint() { m_pictureUsed++; }
unsigned int pictureUsed() { return m_pictureUsed; }
+
+ void markAsDirty(const SkRegion& dirtyArea);
+ void clearDirtyRegion();
+ const SkRegion& dirtyRegion() { return m_dirtyRegion; }
+
void contentDraw(SkCanvas*);
void extraDraw(SkCanvas*);
@@ -337,6 +343,9 @@ private:
bool m_dirty;
unsigned int m_pictureUsed;
+ // dirty regions
+ SkRegion m_dirtyRegion;
+
// used to signal the framework we need a repaint
bool m_hasRunningAnimations;