| 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 68ff41b655c3f35ab33de086cfd418f16b62359f..b215af390db1f8dee4fb3e0e7fa0c603c4ca6742 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_utils.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_utils.h
|
| @@ -109,16 +109,20 @@ class GLES2_UTILS_EXPORT GLES2Util {
|
|
|
| // Computes the size of an image row including alignment padding
|
| static bool ComputeImagePaddedRowSize(
|
| - int width, int format, int type, int unpack_alignment,
|
| - uint32* padded_row_size);
|
| + int width, int format, int type, int unpack_alignment,
|
| + uint32* padded_row_size);
|
|
|
| // Computes the size of image data for TexImage2D and TexSubImage2D.
|
| // Optionally the unpadded and padded row sizes can be returned. If height < 2
|
| // then the padded_row_size will be the same as the unpadded_row_size since
|
| // padding is not necessary.
|
| static bool ComputeImageDataSizes(
|
| - int width, int height, int format, int type, int unpack_alignment,
|
| - uint32* size, uint32* unpadded_row_size, uint32* padded_row_size);
|
| + int width, int height, int format, int type, int unpack_alignment,
|
| + uint32* size, uint32* unpadded_row_size, uint32* padded_row_size);
|
| +
|
| + // Computes the estimated size of a renderbuffer.
|
| + static bool ComputeEstimatedRenderbufferSize(
|
| + int width, int height, int samples, int internal_format, uint32* size);
|
|
|
| static size_t RenderbufferBytesPerPixel(int format);
|
|
|
|
|