Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18edb811 authored by Romain Guy's avatar Romain Guy
Browse files

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
parent b92edf99
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -595,10 +595,13 @@ void DisplayList::output(OpenGLRenderer& renderer, uint32_t level) {
            break;
            case DrawText: {
                getText(&text);
                int count = getInt();
                int positionsCount = 0;
                int32_t count = getInt();
                float x = getFloat();
                float y = getFloat();
                int32_t positionsCount = 0;
                float* positions = getFloats(positionsCount);
                SkPaint* paint = getPaint(renderer);
                float length = getFloat();
                ALOGD("%s%s %s, %d, %d, %p", (char*) indent, OP_NAMES[op],
                        text.text(), text.length(), count, paint);
            }