From 5977baa1fa24125c148a72699b53e62abaf08960 Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Wed, 5 Jan 2011 18:01:22 -0800 Subject: Reuse of native display list objects Change-Id: Ia4553e23930ad20e56c11faa7809be788a1ad4bb --- libs/hwui/DisplayListRenderer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libs/hwui/DisplayListRenderer.h') 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 -- cgit v1.1