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

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 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/service/gles2_cmd_validation_implementation_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index c5b581a826a69f065e8f434ada10fe28e6ea9c1e..69eebb6b82d5adc08811d3a06da212bff744dc88 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -971,6 +971,16 @@ static const GLenum valid_texture_bind_target_table_es3[] = {
GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
};
+bool Validators::TextureBufferUsageValidator::IsValid(
+ const GLenum value) const {
+ switch (value) {
+ case GL_NONE:
+ case GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM:
+ return true;
+ }
+ return false;
+};
+
bool Validators::TextureCompareFuncValidator::IsValid(
const GLenum value) const {
switch (value) {
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/command_buffer/service/image_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698