summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-06-01 14:52:00 -0700
committerRomain Guy <romainguy@google.com>2011-06-01 14:55:42 -0700
commit726aeba80ffc6778a9bc3e0ee957b8d644183505 (patch)
tree2a270831f12cfa6dd69a07e9068c76c3b737754e /libs/hwui/DisplayListRenderer.cpp
parentf09ef51889f75289b041f9e9f949b7b82ed5b686 (diff)
downloadframeworks_base-726aeba80ffc6778a9bc3e0ee957b8d644183505.zip
frameworks_base-726aeba80ffc6778a9bc3e0ee957b8d644183505.tar.gz
frameworks_base-726aeba80ffc6778a9bc3e0ee957b8d644183505.tar.bz2
Add support to OpenGLRendere to draw BiDi text.
Bug #4350336 Change-Id: I1cf31693f7ca9653fa3a41b5b91c27ef288d680f
Diffstat (limited to 'libs/hwui/DisplayListRenderer.cpp')
-rw-r--r--libs/hwui/DisplayListRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp
index f8582d8..afab26a 100644
--- a/libs/hwui/DisplayListRenderer.cpp
+++ b/libs/hwui/DisplayListRenderer.cpp
@@ -1151,6 +1151,7 @@ void DisplayListRenderer::drawPoints(float* points, int count, SkPaint* paint) {
void DisplayListRenderer::drawText(const char* text, int bytesCount, int count,
float x, float y, SkPaint* paint) {
+ if (count <= 0) return;
addOp(DisplayList::DrawText);
addText(text, bytesCount);
addInt(count);