summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-11 14:29:25 -0800
committerRomain Guy <romainguy@google.com>2011-01-11 17:53:19 -0800
commit6c319ca1275c8db892c39b48fc54864c949f9171 (patch)
treed89e4222487db2ccd9a6b03b0d55f8361a7d1856 /libs/hwui/DisplayListRenderer.h
parentb796889671c089fb7e2fc4498aa701d3e8e552a3 (diff)
downloadframeworks_base-6c319ca1275c8db892c39b48fc54864c949f9171.zip
frameworks_base-6c319ca1275c8db892c39b48fc54864c949f9171.tar.gz
frameworks_base-6c319ca1275c8db892c39b48fc54864c949f9171.tar.bz2
Better backend for hardware layers.
With this new backend, a hardware layer is only recreated when its associated view is udpated. This offers fast composition in GL and fast update of the layer in GL as well. Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r--libs/hwui/DisplayListRenderer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index fedb174..62cb0e8 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -93,6 +93,7 @@ public:
ConcatMatrix,
ClipRect,
DrawDisplayList,
+ DrawLayer,
DrawBitmap,
DrawBitmapMatrix,
DrawBitmapRect,
@@ -245,6 +246,8 @@ public:
bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
void drawDisplayList(DisplayList* displayList);
+ void drawLayer(int texture, float left, float top, float right, float bottom,
+ float u, float v, SkPaint* paint);
void drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
void drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
void drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop,