[skparagraph] Remove the height from Cluster

Cluster kept its height, which no code reads.

Remove fHeight and height(). The cluster table does not calculate the
height for each cluster any more. Also remove the two constructors that
no code uses.

This change alone does not make Cluster smaller. fWidth, fHeight,
fHalfLetterSpacing and four bool members take 16 bytes. Without fHeight
they take 12 bytes, and the padding of the struct keeps its size. Cluster
gets smaller when fHalfLetterSpacing is removed too, in the change that
derives the half letter spacing.

Cluster is 64 bytes before and after this change. The memory that 1000
laid-out paragraphs keep and the instructions for one paragraph do not
change (within 0.1 MB and 1%).

Tests: the SkParagraph unit tests give the same results as before.

Change-Id: I873c93ddcc8aee30f5bd17094855a6feab6041c7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1412382
Reviewed-by: Alexis Cruz-Ayala <alexisdavidc@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
2 files changed