summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-01-23 17:09:05 -0800
committerRomain Guy <romainguy@google.com>2012-01-23 17:09:05 -0800
commit5ff9df658230d49e42c43586997a02d8e4dd417e (patch)
tree4b6f2b97036285bd8e114c2f476bcfd0c812d4c9 /libs/hwui/DisplayListRenderer.h
parent36d7549181af397cfaf879f46e407e762e0e8cba (diff)
downloadframeworks_base-5ff9df658230d49e42c43586997a02d8e4dd417e.zip
frameworks_base-5ff9df658230d49e42c43586997a02d8e4dd417e.tar.gz
frameworks_base-5ff9df658230d49e42c43586997a02d8e4dd417e.tar.bz2
Add full support for Canvas.setDrawFilter()
Change-Id: I0ad35d0603c4eeda469014803be14c1dcdde918c
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r--libs/hwui/DisplayListRenderer.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index 422184e..6fe4205 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -103,6 +103,8 @@ public:
SetupColorFilter,
ResetShadow,
SetupShadow,
+ ResetPaintFilter,
+ SetupPaintFilter,
DrawGLFunction,
};
@@ -177,8 +179,8 @@ private:
return (SkPath*) getInt();
}
- SkPaint* getPaint() {
- return (SkPaint*) getInt();
+ SkPaint* getPaint(OpenGLRenderer& renderer) {
+ return renderer.filterPaint((SkPaint*) getInt());
}
DisplayList* getDisplayList() {
@@ -304,6 +306,9 @@ public:
virtual void resetShadow();
virtual void setupShadow(float radius, float dx, float dy, int color);
+ virtual void resetPaintFilter();
+ virtual void setupPaintFilter(int clearBits, int setBits);
+
ANDROID_API void reset();
const SkWriter32& writeStream() const {