Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3795)

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698