Skip to content

Commit 18edb81

Browse files
author
Romain Guy
committed
Avoid crash when dumping display lists
We recently changed the drawText implementation to accept more parameters which were not taken into account during a dump operation. Change-Id: Ia1dc682dc7bb2bb02a1f4a514ed5af5556f92a97
1 parent b92edf9 commit 18edb81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/hwui/DisplayListRenderer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,13 @@ void DisplayList::output(OpenGLRenderer& renderer, uint32_t level) {
595595
break;
596596
case DrawText: {
597597
getText(&text);
598-
int count = getInt();
599-
int positionsCount = 0;
598+
int32_t count = getInt();
599+
float x = getFloat();
600+
float y = getFloat();
601+
int32_t positionsCount = 0;
600602
float* positions = getFloats(positionsCount);
601603
SkPaint* paint = getPaint(renderer);
604+
float length = getFloat();
602605
ALOGD("%s%s %s, %d, %d, %p", (char*) indent, OP_NAMES[op],
603606
text.text(), text.length(), count, paint);
604607
}

0 commit comments

Comments
 (0)