Appease VS 2019

W/o this change VS 2019 has an internal compiler error on the std::initialize_list<>::begin method.

Change-Id: I3be014e124fcdb29c96c7f71a43ea7e7f039758d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282849
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2020-04-10 11:27:44 -04:00 committed by Skia Commit-Bot
parent c505a45bac
commit 404b7cf1c4

View File

@ -101,7 +101,7 @@ public:
enum class YUVAChannel { kY, kU, kV, kA };
explicit constexpr YUVAPlanarConfig(const std::initializer_list<YUVALocation>& yuvaLocations);
explicit YUVAPlanarConfig(const std::initializer_list<YUVALocation>& yuvaLocations);
constexpr int numPlanes() const { return fNumPlanes; }
@ -150,8 +150,7 @@ private:
int fNumPlanes = 0;
};
constexpr YUVAPlanarConfig::YUVAPlanarConfig(
const std::initializer_list<YUVALocation>& yuvaLocations) {
YUVAPlanarConfig::YUVAPlanarConfig(const std::initializer_list<YUVALocation>& yuvaLocations) {
SkASSERT(yuvaLocations.size() == 3 || yuvaLocations.size() == 4);
uint32_t planeMask[5] = {};
int l = 0;