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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2321953002: Use 64-bits shader compile options (Closed)
Patch Set: Created 4 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 | « no previous file | gpu/command_buffer/service/shader_translator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index b1039c98a9deef97378f9c15553905196c95305a..ff3e6b954658c5be7390ffc48674c671e1c35ab8 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3772,7 +3772,7 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
else
resources.HashFunction = NULL;
- int driver_bug_workarounds = 0;
+ ShCompileOptions driver_bug_workarounds = 0;
if (workarounds().init_gl_position_in_vertex_shader)
driver_bug_workarounds |= SH_INIT_GL_POSITION;
if (workarounds().unfold_short_circuit_as_ternary_operation)
@@ -3796,7 +3796,7 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
vertex_translator_ = shader_translator_cache()->GetTranslator(
GL_VERTEX_SHADER, shader_spec, &resources, shader_output_language,
- static_cast<ShCompileOptions>(driver_bug_workarounds));
+ driver_bug_workarounds);
if (!vertex_translator_.get()) {
LOG(ERROR) << "Could not initialize vertex shader translator.";
Destroy(true);
@@ -3805,7 +3805,7 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
fragment_translator_ = shader_translator_cache()->GetTranslator(
GL_FRAGMENT_SHADER, shader_spec, &resources, shader_output_language,
- static_cast<ShCompileOptions>(driver_bug_workarounds));
+ driver_bug_workarounds);
if (!fragment_translator_.get()) {
LOG(ERROR) << "Could not initialize fragment shader translator.";
Destroy(true);
« no previous file with comments | « no previous file | gpu/command_buffer/service/shader_translator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698