Index: webkit/gpu/webgraphicscontext3d_in_process_impl.cc |
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc |
index a100b1f7fb536f7a22279f6357b3d384d0b2edab..847acdac5ca3a4439d1897ffa51ed825dc199225 100644 |
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc |
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc |
@@ -1797,7 +1797,11 @@ bool WebGraphicsContext3DInProcessImpl::AngleValidateShaderSource( |
char* source = entry->source.get(); |
if (!ShCompile(compiler, &source, 1, SH_OBJECT_CODE)) { |
+#if !defined(ANGLE_SH_VERSION) || ANGLE_SH_VERSION < 108 |
int logSize = 0; |
+#else |
+ size_t logSize = 0; |
+#endif |
ShGetInfo(compiler, SH_INFO_LOG_LENGTH, &logSize); |
if (logSize > 1) { |
entry->log.reset(new char[logSize]); |
@@ -1806,7 +1810,11 @@ bool WebGraphicsContext3DInProcessImpl::AngleValidateShaderSource( |
return false; |
} |
+#if !defined(ANGLE_SH_VERSION) || ANGLE_SH_VERSION < 108 |
int length = 0; |
+#else |
+ size_t length = 0; |
+#endif |
ShGetInfo(compiler, SH_OBJECT_CODE_LENGTH, &length); |
if (length > 1) { |
entry->translated_source.reset(new char[length]); |