| Index: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
|
| index 8275f2143f22aee50f94203d604552d239a34f85..cd276edb64631e176102cf5053a469039121b033 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
|
| @@ -148,9 +148,9 @@ public:
|
| // Computes the image size in bytes. If paddingInBytes is not null, padding
|
| // is also calculated in return. Returns NO_ERROR if succeed, otherwise
|
| // return the suggested GL error indicating the cause of the failure:
|
| - // INVALID_VALUE if width/height is negative or overflow happens.
|
| + // INVALID_VALUE if width/height/depth is negative or overflow happens.
|
| // INVALID_ENUM if format/type is illegal.
|
| - static GLenum computeImageSizeInBytes(GLenum format, GLenum type, GLsizei width, GLsizei height, GLint alignment, unsigned* imageSizeInBytes, unsigned* paddingInBytes);
|
| + static GLenum computeImageSizeInBytes(GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth, GLint alignment, unsigned* imageSizeInBytes, unsigned* paddingInBytes);
|
|
|
| // Check if the format is one of the formats from the ImageData or DOM elements.
|
| // The formats from ImageData is always RGBA8.
|
|
|