summaryrefslogtreecommitdiff
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-01-31 18:56:40 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-01-31 18:56:41 +0000
commit1d89563ff8f5afd77457ef58489a234f490b480c (patch)
tree1310405a34fcc82b2888d71d91212902bd088699 /libs/hwui/OpenGLRenderer.cpp
parent90b8eaa68bda6beaf2ff886c3ed642e7050e3ff6 (diff)
parenta2fe7affd3d077ac163da90996cb2e5e0ca3b8d1 (diff)
Merge "Add initial hidden outline APIs"
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 7a1194870d57..b71082572ce2 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -3199,6 +3199,11 @@ status_t OpenGLRenderer::drawShadow(const mat4& casterTransform, float casterAlp
PathTessellator::approximatePathOutlineVertices(*casterOutline,
casterRefinementThresholdSquared, casterVertices2d);
+ if (casterVertices2d.size() == 0) {
+ // empty caster polygon computed from path
+ return DrawGlInfo::kStatusDone;
+ }
+
// map 2d caster poly into 3d
const int casterVertexCount = casterVertices2d.size();
Vector3 casterPolygon[casterVertexCount];