Remove formatType arg from computeCompressedImageSize.
BUG=angleproject:2230
Change-Id: Ie291ba05efa89bc4ea52966e975d5a21431a461f
Reviewed-on: https://chromium-review.googlesource.com/757877
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/formatutils.cpp b/src/libANGLE/formatutils.cpp
index 00eac8a..8e316c4 100644
--- a/src/libANGLE/formatutils.cpp
+++ b/src/libANGLE/formatutils.cpp
@@ -1075,7 +1075,7 @@
if (compressed)
{
ASSERT(rowLength == 0);
- return computeCompressedImageSize(formatType, Extents(width, 1, 1));
+ return computeCompressedImageSize(Extents(width, 1, 1));
}
CheckedNumeric<GLuint> checkedWidth(rowLength > 0 ? rowLength : width);
@@ -1113,8 +1113,7 @@
return computeDepthPitch(height, imageHeight, rowPitch);
}
-ErrorOrResult<GLuint> InternalFormat::computeCompressedImageSize(GLenum formatType,
- const Extents &size) const
+ErrorOrResult<GLuint> InternalFormat::computeCompressedImageSize(const Extents &size) const
{
CheckedNumeric<GLuint> checkedWidth(size.width);
CheckedNumeric<GLuint> checkedHeight(size.height);
@@ -1171,7 +1170,7 @@
CheckedNumeric<GLuint> checkedCopyBytes = 0;
if (compressed)
{
- ANGLE_TRY_RESULT(computeCompressedImageSize(formatType, size), checkedCopyBytes);
+ ANGLE_TRY_RESULT(computeCompressedImageSize(size), checkedCopyBytes);
}
else if (size.height != 0 && (!is3D || size.depth != 0))
{