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

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

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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.h
diff --git a/gpu/command_buffer/service/shader_translator.h b/gpu/command_buffer/service/shader_translator.h
index a17f6ce61cad2acf67a9339244694c4885ce6a6d..04b1206a41b8b563afa7d9b669ea51418704a858 100644
--- a/gpu/command_buffer/service/shader_translator.h
+++ b/gpu/command_buffer/service/shader_translator.h
@@ -44,7 +44,8 @@ class ShaderTranslatorInterface
ShShaderSpec shader_spec,
const ShBuiltInResources* resources,
ShShaderOutput shader_output_language,
- ShCompileOptions driver_bug_workarounds) = 0;
+ ShCompileOptions driver_bug_workarounds,
+ bool gl_shader_interm_output) = 0;
// Translates the given shader source.
// Returns true if translation is successful, false otherwise.
@@ -100,7 +101,8 @@ class GPU_EXPORT ShaderTranslator
ShShaderSpec shader_spec,
const ShBuiltInResources* resources,
ShShaderOutput shader_output_language,
- ShCompileOptions driver_bug_workarounds) override;
+ ShCompileOptions driver_bug_workarounds,
+ bool gl_shader_interm_output) override;
// Overridden from ShaderTranslatorInterface.
bool Translate(const std::string& shader_source,
@@ -126,6 +128,7 @@ class GPU_EXPORT ShaderTranslator
ShHandle compiler_;
ShCompileOptions driver_bug_workarounds_;
+ bool gl_shader_interm_output_;
base::ObserverList<DestructionObserver> destruction_observers_;
};
« no previous file with comments | « gpu/command_buffer/service/program_manager_unittest.cc ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698