From 1bc4ee4506b0a113d447d54909e1f8f5c1205563 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 19 Feb 2016 15:57:45 -0800 Subject: [PATCH] Cleanup cached state in TestUtils::runOnRenderThread Change-Id: I097217c80db5c509d97ef050633946110fccbc80 --- libs/hwui/tests/common/TestUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/hwui/tests/common/TestUtils.cpp b/libs/hwui/tests/common/TestUtils.cpp index 3440d03b4fc52..9595a85e99dd4 100644 --- a/libs/hwui/tests/common/TestUtils.cpp +++ b/libs/hwui/tests/common/TestUtils.cpp @@ -162,6 +162,7 @@ void TestUtils::TestTask::run() { renderState.onGLContextCreated(); rtCallback(renderthread::RenderThread::getInstance()); + renderState.flush(Caches::FlushMode::Full); renderState.onGLContextDestroyed(); // Restore the previous signal handler