diff options
author | 2014-06-02 16:27:04 -0700 | |
---|---|---|
committer | 2014-06-10 01:53:17 +0000 | |
commit | 05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5 (patch) | |
tree | 14df3cad82b02a886b8e3a04fd4ec249e1d403e4 /libs/hwui/SpotShadow.cpp | |
parent | faecafce62ca39a7693669f7c9eabf2d71c633cf (diff) |
Tessellate on worker threads
Tessellate and cache (where possible) shadow and round rect
tessellation tasks.
Change-Id: I2cfda8e11d83d51ea74af871235cf26e8f831d40
Diffstat (limited to 'libs/hwui/SpotShadow.cpp')
-rw-r--r-- | libs/hwui/SpotShadow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } /** |