Refactor a hex streaming into a generic FmtHex function.
The length of the printed value can be determined from size of the type.
BUG=angleproject:2546
Change-Id: I39a4f9550f381dd82183f50019b3f7d117c52472
Reviewed-on: https://chromium-review.googlesource.com/1070220
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/formatutils.cpp b/src/libANGLE/formatutils.cpp
index 81b910a..f104b70 100644
--- a/src/libANGLE/formatutils.cpp
+++ b/src/libANGLE/formatutils.cpp
@@ -499,7 +499,7 @@
std::ostream &operator<<(std::ostream &os, const Format &fmt)
{
// TODO(ynovikov): return string representation when available
- return FmtHexShort(os, fmt.info->sizedInternalFormat);
+ return FmtHex(os, fmt.info->sizedInternalFormat);
}
bool InternalFormat::operator==(const InternalFormat &other) const