summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-04-04 16:20:08 -0700
committerJohn Reck <jreck@google.com>2014-04-07 14:53:08 -0700
commit087bc0c14bdccf7c258dce0cdef46a69a839b427 (patch)
treecab73aeed8e9a0bc8e74243a35c026ab0b321e08 /libs/hwui/Layer.h
parentce16215d7b4d9bedfc62e172dc44ab439afef13a (diff)
Refcount RenderNode
Change-Id: I7a86db8acc2b78ef33d987a43a119f5933d7d752
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index b428404f04e0..5375b4509db1 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -19,6 +19,7 @@
#include <cutils/compiler.h>
#include <sys/types.h>
+#include <utils/StrongPointer.h>
#include <GLES2/gl2.h>
@@ -85,13 +86,7 @@ public:
}
void updateDeferred(RenderNode* displayList,
- int left, int top, int right, int bottom) {
- requireRenderer();
- this->displayList = displayList;
- const Rect r(left, top, right, bottom);
- dirtyRect.unionWith(r);
- deferredUpdateScheduled = true;
- }
+ int left, int top, int right, int bottom);
inline uint32_t getWidth() const {
return texture.width;
@@ -294,7 +289,7 @@ public:
*/
bool deferredUpdateScheduled;
OpenGLRenderer* renderer;
- RenderNode* displayList;
+ sp<RenderNode> displayList;
Rect dirtyRect;
bool debugDrawUpdate;
bool hasDrawnSinceUpdate;