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

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

Issue 1309333003: Get ReadPixels to work with INT and UNSIGNED_INT format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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
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 4946205b365b74c001c1ecf76ad37e8688af89df..69efb0b4caf35741e020f22f608c67ccd13a191e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -186,6 +186,10 @@ class GLES2_UTILS_EXPORT GLES2Util {
static uint32_t MapBufferTargetToBindingEnum(uint32_t target);
+ static bool IsUnsignedIntegerFormat(uint32_t internal_format);
+ static bool IsSignedIntegerFormat(uint32_t internal_format);
+ static bool IsIntegerFormat(uint32_t internal_format);
+
#include "../common/gles2_cmd_utils_autogen.h"
private:

Powered by Google App Engine
This is Rietveld 408576698