From 341480bef58ee40eceb1caa4d94c4a8d3934b132 Mon Sep 17 00:00:00 2001 From: Matt Sarett Date: Mon, 23 Jan 2017 19:45:42 -0500 Subject: [PATCH] Fix renderOverdraw() test I'm not sure why this test was modifies, but this restores the test to the original version, which passes. Test: Passes unit test BUG:34467659 Change-Id: I6699cf13d4b69301d57fa0cec9b24093e8263ba7 --- libs/hwui/tests/unit/SkiaPipelineTests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/hwui/tests/unit/SkiaPipelineTests.cpp b/libs/hwui/tests/unit/SkiaPipelineTests.cpp index 0b8c2a98fab5a..5bb0b6db06b52 100644 --- a/libs/hwui/tests/unit/SkiaPipelineTests.cpp +++ b/libs/hwui/tests/unit/SkiaPipelineTests.cpp @@ -170,9 +170,7 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(SkiaPipeline, renderOverdraw) { ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE); // 1 Overdraw, should be blue blended onto white. - renderNodes.push_back(whiteNode); //this is the "content" node - renderNodes.push_back(whiteNode); //the "content" node above does not cause an overdraw, because - //it clips the first "background" node + renderNodes.push_back(whiteNode); pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface); ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned) 0xffd0d0ff);