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

Unified Diff: gpu/command_buffer/service/shader_translator_cache.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
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 0d3e777bc204650ad806bbe94c4198c16be4d822..551522bdbc438f53bee4aee8b8222e2b3d520241 100644
--- a/gpu/command_buffer/service/shader_translator_cache.h
+++ b/gpu/command_buffer/service/shader_translator_cache.h
@@ -36,8 +36,7 @@ class ShaderTranslatorCache : public ShaderTranslator::DestructionObserver {
const ShBuiltInResources* resources,
ShaderTranslatorInterface::GlslImplementationType
glsl_implementation_type,
- ShaderTranslatorInterface::GlslBuiltInFunctionBehavior
- glsl_built_in_function_behavior);
+ ShCompileOptions driver_bug_workarounds);
private:
ShaderTranslatorCache();
@@ -52,8 +51,7 @@ class ShaderTranslatorCache : public ShaderTranslator::DestructionObserver {
ShBuiltInResources resources;
ShaderTranslatorInterface::GlslImplementationType
glsl_implementation_type;
- ShaderTranslatorInterface::GlslBuiltInFunctionBehavior
- glsl_built_in_function_behavior;
+ ShCompileOptions driver_bug_workarounds;
ShaderTranslatorInitParams(
ShShaderType shader_type,
@@ -61,13 +59,12 @@ class ShaderTranslatorCache : public ShaderTranslator::DestructionObserver {
const ShBuiltInResources& resources,
ShaderTranslatorInterface::GlslImplementationType
glsl_implementation_type,
- ShaderTranslatorInterface::GlslBuiltInFunctionBehavior
- glsl_built_in_function_behavior)
+ ShCompileOptions driver_bug_workarounds)
: shader_type(shader_type),
shader_spec(shader_spec),
resources(resources),
glsl_implementation_type(glsl_implementation_type),
- glsl_built_in_function_behavior(glsl_built_in_function_behavior) {
+ driver_bug_workarounds(driver_bug_workarounds) {
}
ShaderTranslatorInitParams(const ShaderTranslatorInitParams& params) {
« no previous file with comments | « gpu/command_buffer/service/shader_translator.cc ('k') | gpu/command_buffer/service/shader_translator_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698