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

Commit c9d13176 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 56a5205a: am 18edb811: Avoid crash when dumping display lists

* commit '56a5205a':
  Avoid crash when dumping display lists
parents fb99bddd 56a5205a
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);
            }