Changeset 57267 in webkit


Ignore:
Timestamp:
Apr 8, 2010 2:23:00 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-08 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>

Reviewed by Simon Hausmann.

[Qt] Remove shaderSource manipulation from GraphicsContext3DQt.cpp
https://bugs.webkit.org/show_bug.cgi?id=37226

  • platform/graphics/qt/GraphicsContext3DQt.cpp: (WebCore::GraphicsContext3D::shaderSource):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57263 r57267  
     12010-04-08  Jarkko Sakkinen  <jarkko.sakkinen@tieto.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5         [Qt] Remove shaderSource manipulation from GraphicsContext3DQt.cpp
     6         https://bugs.webkit.org/show_bug.cgi?id=37226
     7
     8        * platform/graphics/qt/GraphicsContext3DQt.cpp:
     9        (WebCore::GraphicsContext3D::shaderSource):
     10
    1112010-04-08  Chris Evans  <cevans@chromium.org>
    212
  • trunk/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp

    r57174 r57267  
    10311031}
    10321032
    1033 void GraphicsContext3D::shaderSource(WebGLShader* shader, const String& string)
     1033void GraphicsContext3D::shaderSource(WebGLShader* shader, const String& source)
    10341034{
    10351035    ASSERT(shader);
     
    10371037    m_internal->m_glWidget->makeCurrent();
    10381038
    1039     // Force the use of GLSL 1.0:
    1040     // https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec/WebGL-spec.html#4.4
    1041     // FIXME: Lines beginning with "#version" should be stripped out.
    1042 
    1043     String prepared;
    1044    
    1045     prepared.append("#version 100\n");
    1046 #if defined(QT_OPENGL_ES_2)
    1047     prepared.append("precision mediump float;\n");
    1048 #endif
    1049     prepared.append(string);
    1050 
    1051     CString preparedCS = prepared.utf8();
    1052     const char* data = preparedCS.data();
    1053     int length = prepared.length();
     1039    CString sourceCS = source.utf8();
     1040    const char* data = sourceCS.data();
     1041    int length = source.length();
    10541042    m_internal->shaderSource((GLuint) shader->object(), /* count */ 1, &data, &length);
    10551043}
Note: See TracChangeset for help on using the changeset viewer.