Fix memory corruption in test

Bug: 18012918
Change-Id: I8d69624e9be9f0399ddba10ce3903f93177d5930
This commit is contained in:
John Reck
2014-10-16 09:18:11 -07:00
parent ea6f0ae86d
commit af608319f2

View File

@@ -76,6 +76,7 @@ int main(int argc, char* argv[]) {
sp<Surface> surface = control->getSurface();
RenderNode* rootNode = new RenderNode();
rootNode->incStrong(0);
rootNode->mutateStagingProperties().setLeftTopRightBottom(0, 0, width, height);
rootNode->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y);
rootNode->mutateStagingProperties().setClipToBounds(false);