Source/WebCore/ChangeLog

 12013-02-10 Zan Dobersek <zdobersek@igalia.com>
 2
 3 [GTK] Build errors in TextureMapperShaderProgram.cpp when compiling with Clang
 4 https://bugs.webkit.org/show_bug.cgi?id=109321
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Clang is reporting errors due to non-constant expressions that cannot be narrowed
 9 from double to float type in initializer list when constructing a matrix of GC3Dfloat
 10 numbers. To avoid this every parameter is passed through an explicit GC3Dfloat constructor.
 11
 12 No new tests - no new functionality.
 13
 14 * platform/graphics/texmap/TextureMapperShaderProgram.cpp:
 15 (WebCore::TextureMapperShaderProgram::setMatrix):
 16
1172013-02-09 Dominic Mazzoni <dmazzoni@google.com>
218
319 fast/encoding/parser-tests-*.html tests sometimes crash
142390

Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp

@@TextureMapperShaderProgram::TextureMappe
7373void TextureMapperShaderProgram::setMatrix(GC3Duint location, const TransformationMatrix& matrix)
7474{
7575 GC3Dfloat matrixAsFloats[] = {
76  matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(),
77  matrix.m21(), matrix.m22(), matrix.m23(), matrix.m24(),
78  matrix.m31(), matrix.m32(), matrix.m33(), matrix.m34(),
79  matrix.m41(), matrix.m42(), matrix.m43(), matrix.m44()
 76 GC3Dfloat(matrix.m11()), GC3Dfloat(matrix.m12()), GC3Dfloat(matrix.m13()), GC3Dfloat(matrix.m14()),
 77 GC3Dfloat(matrix.m21()), GC3Dfloat(matrix.m22()), GC3Dfloat(matrix.m23()), GC3Dfloat(matrix.m24()),
 78 GC3Dfloat(matrix.m31()), GC3Dfloat(matrix.m32()), GC3Dfloat(matrix.m33()), GC3Dfloat(matrix.m34()),
 79 GC3Dfloat(matrix.m41()), GC3Dfloat(matrix.m42()), GC3Dfloat(matrix.m43()), GC3Dfloat(matrix.m44())
8080 };
8181
8282 m_context->uniformMatrix4fv(location, 1, false, matrixAsFloats);
142390