Use SkTArray instead of SkSTArray in movable.
SkTArray is trivially movable, but SkSTArray is not, since it may contain an internal pointer. FontFileInfo is supposed to be trivially movable but currently isn't due to containing an SkSTArray. Removing this particular optimization should not affect performance much as this type is only used for parsing and does not allocate any memory unless a variation axis is actually specified. Review URL: https://codereview.chromium.org/1155383002
This commit is contained in:
parent
9700206b67
commit
a9f1db7902
@ -76,7 +76,7 @@ struct FontFileInfo {
|
||||
SkFourByteTag fTag;
|
||||
SkFixed fValue;
|
||||
};
|
||||
SkSTArray<4, Axis, true> fAxes;
|
||||
SkTArray<Axis, true> fAxes;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user