summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-01-05 18:01:22 -0800
committerChet Haase <chet@google.com>2011-01-06 12:50:30 -0800
commit5977baa1fa24125c148a72699b53e62abaf08960 (patch)
tree17d30311c2db05787275345e132fb42692e9a08f /libs/hwui/DisplayListRenderer.h
parent42edf0f8cf8ca85dd5010558ff399e2c9a4c779c (diff)
downloadframeworks_base-5977baa1fa24125c148a72699b53e62abaf08960.zip
frameworks_base-5977baa1fa24125c148a72699b53e62abaf08960.tar.gz
frameworks_base-5977baa1fa24125c148a72699b53e62abaf08960.tar.bz2
Reuse of native display list objects
Change-Id: Ia4553e23930ad20e56c11faa7809be788a1ad4bb
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r--libs/hwui/DisplayListRenderer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index b608381..fedb174 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -110,6 +110,8 @@ public:
SetupShadow
};
+ void initFromDisplayListRenderer(const DisplayListRenderer& recorder);
+
void replay(OpenGLRenderer& renderer);
private:
@@ -216,6 +218,8 @@ public:
DisplayListRenderer();
~DisplayListRenderer();
+ DisplayList* getDisplayList();
+
void setViewport(int width, int height);
void prepare(bool opaque);
@@ -266,10 +270,6 @@ public:
void reset();
- DisplayList* getDisplayList() const {
- return new DisplayList(*this);
- }
-
const SkWriter32& writeStream() const {
return mWriter;
}
@@ -422,6 +422,8 @@ private:
SkRefCntRecorder mRCRecorder;
SkRefCntRecorder mTFRecorder;
+ DisplayList *mDisplayList;
+
friend class DisplayList;
}; // class DisplayListRenderer