From 05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 2 Jun 2014 16:27:04 -0700 Subject: Tessellate on worker threads Tessellate and cache (where possible) shadow and round rect tessellation tasks. Change-Id: I2cfda8e11d83d51ea74af871235cf26e8f831d40 --- libs/hwui/SpotShadow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/SpotShadow.cpp') diff --git a/libs/hwui/SpotShadow.cpp b/libs/hwui/SpotShadow.cpp index 3ebe7b4f34e7..06f6204e85fb 100644 --- a/libs/hwui/SpotShadow.cpp +++ b/libs/hwui/SpotShadow.cpp @@ -500,14 +500,14 @@ void SpotShadow::computeLightPolygon(int points, const Vector3& lightCenter, * empty strip if error. * */ -VertexBufferMode SpotShadow::createSpotShadow(bool isCasterOpaque, const Vector3* poly, +void SpotShadow::createSpotShadow(bool isCasterOpaque, const Vector3* poly, int polyLength, const Vector3& lightCenter, float lightSize, int lightVertexCount, VertexBuffer& retStrips) { Vector3 light[lightVertexCount * 3]; computeLightPolygon(lightVertexCount, lightCenter, lightSize, light); computeSpotShadow(isCasterOpaque, light, lightVertexCount, lightCenter, poly, polyLength, retStrips); - return kVertexBufferMode_TwoPolyRingShadow; + retStrips.setMode(VertexBuffer::kTwoPolyRingShadow); } /** -- cgit v1.2.3-59-g8ed1b