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

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

Issue 1134373002: Add a bunch of ES3 enums to the validator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 257758fec021a89e1ff17ca353a0eac775be5f3d..7fc6c4d9b541892b4cd75c2438d0e5a8ab70632c 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -15,6 +15,14 @@
#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
+// TODO(zmo): missing enums from ES3 header file gl3.h.
+#if !defined(GL_PACK_SKIP_IMAGES)
+#define GL_PACK_SKIP_IMAGES 0x806B
+#endif
+#if !defined(GL_PACK_IMAGE_HEIGHT)
+#define GL_PACK_IMAGE_HEIGHT 0x806C
+#endif
+
namespace gpu {
namespace gles2 {

Powered by Google App Engine
This is Rietveld 408576698