diff options
Diffstat (limited to 'libs/hwui/Layer.h')
| -rw-r--r-- | libs/hwui/Layer.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index b428404..5375b45 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; |
