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

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

Issue 1403483002: Update CopyTexImage2D to do internal format validation in ES3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unsigned integer format Created 5 years, 2 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 b29f96b4fa51f912c5ef5dbe890d37e7175e3c29..ef836cf8f8294225b8424bda5acd89a7c0693ff1 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -190,6 +190,8 @@ class GLES2_UTILS_EXPORT GLES2Util {
static bool IsUnsignedIntegerFormat(uint32_t internal_format);
static bool IsSignedIntegerFormat(uint32_t internal_format);
static bool IsIntegerFormat(uint32_t internal_format);
+ static bool IsFloatFormat(uint32_t internal_format);
+ static bool IsSRGBFormat(uint32_t internal_format);
#include "../common/gles2_cmd_utils_autogen.h"
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698