Add #include <algorithm> to SkTArray.h

SkTArray.h uses std::max() which is part of <algorithm>.
Some libc++ changes have stopped exporting <algorithm> from certain headers, causing skia to break with ToT libc++.

2e2f3158c6

Change-Id: Iee4e00b3b3a6cbe2c1881453d05c0658e95a767b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512016
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Auto-Submit: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Erik Rose <erikrose@google.com>
Commit-Queue: Erik Rose <erikrose@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
Arthur Eubanks 2022-02-22 13:14:19 -08:00 committed by SkCQ
parent 9608bbe95a
commit 59de321c10

View File

@ -16,6 +16,7 @@
#include "include/private/SkTemplates.h"
#include "include/private/SkTo.h"
#include <algorithm>
#include <string.h>
#include <initializer_list>
#include <memory>