Skip to content

Commit

Permalink
Fix clang error using implicit tuples ctors with an old stdlibc++ ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
dacap committed Mar 11, 2020
1 parent 0b6e2af commit b607b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gpu/GrProcessorUnitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ GrProcessorTestData::ProxyInfo GrProcessorTestData::randomAlphaOnlyProxy() {
int idx = fRandom->nextULessThan(numAlphaOnly);
for (const auto& [p, ct, at] : fProxies) {
if (GrColorTypeIsAlphaOnly(ct) && !idx--) {
return {p, ct, at};
return std::make_tuple(p, ct, at);
}
}
SkUNREACHABLE;
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/text/GrTextBlob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ std::tuple<bool, int> GrTextBlob::VertexRegenerator::updateTextureCoordinatesMay
: fFullAtlasManager->atlasGeneration(fSubRun->maskFormat());
}

return {code != GrDrawOpAtlas::ErrorCode::kError, glyphsPlacedInAtlas};
return std::make_tuple(code != GrDrawOpAtlas::ErrorCode::kError, glyphsPlacedInAtlas);
}

std::tuple<bool, int> GrTextBlob::VertexRegenerator::regenerate(int begin, int end) {
Expand All @@ -853,6 +853,6 @@ std::tuple<bool, int> GrTextBlob::VertexRegenerator::regenerate(int begin, int e
fUploadTarget->tokenTracker()->nextDrawToken(),
fSubRun->maskFormat());
}
return {true, end - begin};
return std::make_tuple(true, end - begin);
}
}

0 comments on commit b607b32

Please sign in to comment.