Index: gpu/command_buffer/common/gles2_cmd_utils.h |
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.h b/gpu/command_buffer/common/gles2_cmd_utils.h |
index 163ffc008c206f1edb1674d7f321d238299ef10c..1435e1636a9ca01eb514e707aea7e3f3c1af06aa 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_utils.h |
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h |
@@ -129,6 +129,17 @@ class GLES2_UTILS_EXPORT GLES2Util { |
int width, int height, int format, int type, int unpack_alignment, |
uint32_t* size, uint32_t* unpadded_row_size, uint32_t* padded_row_size); |
+ // Computes the size of image data for supported compressed formats. |
+ static bool ComputeCompressedImageSize(int width, |
+ int height, |
+ int format, |
+ int* ret_size); |
+ |
+ static bool IsValidCompressedImageSize(int level, |
+ int width, |
+ int height, |
+ int format); |
+ |
static size_t RenderbufferBytesPerPixel(int format); |
static uint32_t GetGLDataTypeSizeForUniforms(int type); |