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

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

Issue 1273693002: command_buffer: Use GLSL core version that matches the OpenGL version (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/service/shader_translator_cache.h
diff --git a/gpu/command_buffer/service/shader_translator_cache.h b/gpu/command_buffer/service/shader_translator_cache.h
index 6b0b1a57ef35cfc3a727a8962db1af05803dbae3..471b081ac728cf4c7585bfe254abbcb36bd14c58 100644
--- a/gpu/command_buffer/service/shader_translator_cache.h
+++ b/gpu/command_buffer/service/shader_translator_cache.h
@@ -35,8 +35,7 @@ class GPU_EXPORT ShaderTranslatorCache
sh::GLenum shader_type,
ShShaderSpec shader_spec,
const ShBuiltInResources* resources,
- ShaderTranslatorInterface::GlslImplementationType
- glsl_implementation_type,
+ ShShaderOutput shader_output_language,
ShCompileOptions driver_bug_workarounds);
private:
@@ -49,21 +48,19 @@ class GPU_EXPORT ShaderTranslatorCache
sh::GLenum shader_type;
ShShaderSpec shader_spec;
ShBuiltInResources resources;
- ShaderTranslatorInterface::GlslImplementationType
- glsl_implementation_type;
+ ShShaderOutput shader_output_language;
ShCompileOptions driver_bug_workarounds;
ShaderTranslatorInitParams(sh::GLenum shader_type,
ShShaderSpec shader_spec,
const ShBuiltInResources& resources,
- ShaderTranslatorInterface::GlslImplementationType
- glsl_implementation_type,
+ ShShaderOutput shader_output_language,
ShCompileOptions driver_bug_workarounds) {
memset(this, 0, sizeof(*this));
this->shader_type = shader_type;
this->shader_spec = shader_spec;
this->resources = resources;
- this->glsl_implementation_type = glsl_implementation_type;
+ this->shader_output_language = shader_output_language;
this->driver_bug_workarounds = driver_bug_workarounds;
}

Powered by Google App Engine
This is Rietveld 408576698