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

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

Issue 23441050: Add driver bug workaround for SH_INIT_GL_POSITION. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 7 years, 3 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
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/shader_translator.h
diff --git a/gpu/command_buffer/service/shader_translator.h b/gpu/command_buffer/service/shader_translator.h
index 268a1554d0937f68782b930e4a566d5453e3bea5..322cb6b2896efa8620b37a92970c80e0ca9d5ead 100644
--- a/gpu/command_buffer/service/shader_translator.h
+++ b/gpu/command_buffer/service/shader_translator.h
@@ -27,11 +27,6 @@ class ShaderTranslatorInterface {
kGlslES
};
- enum GlslBuiltInFunctionBehavior {
- kGlslBuiltInFunctionOriginal,
- kGlslBuiltInFunctionEmulated
- };
-
struct VariableInfo {
VariableInfo()
: type(0),
@@ -75,7 +70,7 @@ class ShaderTranslatorInterface {
ShShaderSpec shader_spec,
const ShBuiltInResources* resources,
GlslImplementationType glsl_implementation_type,
- GlslBuiltInFunctionBehavior glsl_built_in_function_behavior) = 0;
+ ShCompileOptions driver_bug_workarounds) = 0;
// Translates the given shader source.
// Returns true if translation is successful, false otherwise.
@@ -125,7 +120,7 @@ class GPU_EXPORT ShaderTranslator
ShShaderSpec shader_spec,
const ShBuiltInResources* resources,
GlslImplementationType glsl_implementation_type,
- GlslBuiltInFunctionBehavior glsl_built_in_function_behavior) OVERRIDE;
+ ShCompileOptions driver_bug_workarounds) OVERRIDE;
// Overridden from ShaderTranslatorInterface.
virtual bool Translate(const char* shader) OVERRIDE;
@@ -162,7 +157,7 @@ class GPU_EXPORT ShaderTranslator
VariableMap varying_map_;
NameMap name_map_;
bool implementation_is_glsl_es_;
- bool needs_built_in_function_emulation_;
+ ShCompileOptions driver_bug_workarounds_;
ObserverList<DestructionObserver> destruction_observers_;
DISALLOW_COPY_AND_ASSIGN(ShaderTranslator);
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698