Title: [108696] trunk/Source/WebCore
Revision
108696
Author
[email protected]
Date
2012-02-23 16:24:40 -0800 (Thu, 23 Feb 2012)

Log Message

[Qt][WK2] Clipping is broken
https://bugs.webkit.org/show_bug.cgi?id=78677

Reviewed by Simon Hausmann.

Rework the clipping stack in TextureMapperGL.
Instead of saving a stack of IntRect scissor clips, we save every clipping change in the
stack, and reapply it when we end the clip. Popping the stack is almost free, since we
don't reapply the stencil but simply change the stencil test index.

In addition, we don't use a special shader for clipping, and we don't apply clipping for
masked children, since they're already clipped because they're rendered into an intermediate
buffer.

This fixes exiting tests in LayoutTests/compositing/overflow.
It also fixes asserts in the leaves demo, as well as asserts in nytimes.com and other sites.

* page/FrameView.cpp:
(WebCore::FrameView::paintContents):
* platform/graphics/texmap/TextureMapperGL.cpp:
(ClipState):
(WebCore::TextureMapperGLData::SharedGLData::ClipState::ClipState):
(SharedGLData):
(WebCore::TextureMapperGLData::SharedGLData::pushClipState):
(WebCore::TextureMapperGLData::SharedGLData::popClipState):
(WebCore::TextureMapperGLData::SharedGLData::scissorClip):
(WebCore::TextureMapperGLData::SharedGLData::applyCurrentClip):
(TextureMapperGLData):
(BitmapTextureGL):
(WebCore::TextureMapperGLData::initStencil):
(WebCore):
(WebCore::TextureMapperGL::beginPainting):
(WebCore::TextureMapperGL::endPainting):
(WebCore::TextureMapperGL::drawTexture):
(WebCore::BitmapTextureGL::initStencil):
(WebCore::BitmapTextureGL::bind):
(WebCore::BitmapTextureGL::destroy):
(WebCore::TextureMapperGL::bindSurface):
(WebCore::TextureMapperGL::beginScissorClip):
(WebCore::TextureMapperGL::beginClip):
(WebCore::TextureMapperGL::endClip):
* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintSelfAndChildren):
* platform/graphics/texmap/TextureMapperShaderManager.cpp:
* platform/graphics/texmap/TextureMapperShaderManager.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108695 => 108696)


--- trunk/Source/WebCore/ChangeLog	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/ChangeLog	2012-02-24 00:24:40 UTC (rev 108696)
@@ -1,3 +1,51 @@
+2012-02-23  No'am Rosenthal  <[email protected]>
+
+        [Qt][WK2] Clipping is broken
+        https://bugs.webkit.org/show_bug.cgi?id=78677
+
+        Reviewed by Simon Hausmann.
+
+        Rework the clipping stack in TextureMapperGL.
+        Instead of saving a stack of IntRect scissor clips, we save every clipping change in the
+        stack, and reapply it when we end the clip. Popping the stack is almost free, since we
+        don't reapply the stencil but simply change the stencil test index.
+
+        In addition, we don't use a special shader for clipping, and we don't apply clipping for
+        masked children, since they're already clipped because they're rendered into an intermediate
+        buffer.
+
+        This fixes exiting tests in LayoutTests/compositing/overflow.
+        It also fixes asserts in the leaves demo, as well as asserts in nytimes.com and other sites.
+
+        * page/FrameView.cpp:
+        (WebCore::FrameView::paintContents):
+        * platform/graphics/texmap/TextureMapperGL.cpp:
+        (ClipState):
+        (WebCore::TextureMapperGLData::SharedGLData::ClipState::ClipState):
+        (SharedGLData):
+        (WebCore::TextureMapperGLData::SharedGLData::pushClipState):
+        (WebCore::TextureMapperGLData::SharedGLData::popClipState):
+        (WebCore::TextureMapperGLData::SharedGLData::scissorClip):
+        (WebCore::TextureMapperGLData::SharedGLData::applyCurrentClip):
+        (TextureMapperGLData):
+        (BitmapTextureGL):
+        (WebCore::TextureMapperGLData::initStencil):
+        (WebCore):
+        (WebCore::TextureMapperGL::beginPainting):
+        (WebCore::TextureMapperGL::endPainting):
+        (WebCore::TextureMapperGL::drawTexture):
+        (WebCore::BitmapTextureGL::initStencil):
+        (WebCore::BitmapTextureGL::bind):
+        (WebCore::BitmapTextureGL::destroy):
+        (WebCore::TextureMapperGL::bindSurface):
+        (WebCore::TextureMapperGL::beginScissorClip):
+        (WebCore::TextureMapperGL::beginClip):
+        (WebCore::TextureMapperGL::endClip):
+        * platform/graphics/texmap/TextureMapperLayer.cpp:
+        (WebCore::TextureMapperLayer::paintSelfAndChildren):
+        * platform/graphics/texmap/TextureMapperShaderManager.cpp:
+        * platform/graphics/texmap/TextureMapperShaderManager.h:
+
 2012-02-23  Sheriff Bot  <[email protected]>
 
         Unreviewed, rolling out r108685.

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp (108695 => 108696)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2012-02-24 00:24:40 UTC (rev 108696)
@@ -125,12 +125,59 @@
             return adoptRef(new SharedGLData(getCurrentGLContext()));
         }
 
-        int stencilIndex;
-        Vector<IntRect> clipStack;
+        struct ClipState {
+            IntRect scissorBox;
+            int stencilIndex;
+            ClipState(const IntRect& scissors, int stencil)
+                : scissorBox(scissors)
+                , stencilIndex(stencil)
+            { }
+
+            ClipState()
+                : stencilIndex(1)
+            { }
+        };
+
+        ClipState clipState;
+        Vector<ClipState> clipStack;
+
+        void pushClipState()
+        {
+            clipStack.append(clipState);
+        }
+
+        void popClipState()
+        {
+            if (clipStack.isEmpty())
+                return;
+            clipState = clipStack.last();
+            clipStack.removeLast();
+        }
+
+        static void scissorClip(const IntRect& rect)
+        {
+            if (rect.isEmpty())
+                return;
+
+            GLint viewport[4];
+            GL_CMD(glGetIntegerv(GL_VIEWPORT, viewport))
+            GL_CMD(glScissor(rect.x(), viewport[3] - rect.maxY() + 1, rect.width() - 1, rect.height() - 1))
+        }
+
+        void applyCurrentClip()
+        {
+            scissorClip(clipState.scissorBox);
+            GL_CMD(glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP))
+            glStencilFunc(GL_EQUAL, clipState.stencilIndex - 1, clipState.stencilIndex - 1);
+            if (clipState.stencilIndex == 1)
+                glDisable(GL_STENCIL_TEST);
+            else
+                glEnable(GL_STENCIL_TEST);
+        }
+
         TextureMapperShaderManager textureMapperShaderManager;
 
         SharedGLData(GLContext glContext)
-            : stencilIndex(1)
         {
             glContextDataMap().add(glContext, this);
         }
@@ -155,14 +202,7 @@
         return *(m_sharedGLData.get());
     }
 
-    void initStencil()
-    {
-        if (didModifyStencil)
-            return;
-        glClearStencil(0);
-        glClear(GL_STENCIL_BUFFER_BIT);
-        didModifyStencil = true;
-    }
+    void initializeStencil();
 
     TextureMapperGLData()
         : previousProgram(0)
@@ -178,7 +218,9 @@
     GLint previousScissorState;
     GLint previousDepthState;
     GLint viewport[4];
+    GLint previousScissor[4];
     RefPtr<SharedGLData> m_sharedGLData;
+    RefPtr<BitmapTexture> currentSurface;
 };
 
 class BitmapTextureGL : public BitmapTexture {
@@ -188,6 +230,7 @@
     virtual bool isValid() const;
     virtual void didReset();
     void bind();
+    void initializeStencil();
     ~BitmapTextureGL() { destroy(); }
     virtual uint32_t id() const { return m_id; }
     inline FloatSize relativeSize() const { return m_relativeSize; }
@@ -216,6 +259,21 @@
     friend class TextureMapperGL;
 };
 
+void TextureMapperGLData::initializeStencil()
+{
+    if (currentSurface) {
+        static_cast<BitmapTextureGL*>(currentSurface.get())->initializeStencil();
+        return;
+    }
+
+    if (didModifyStencil)
+        return;
+
+    glClearStencil(0);
+    glClear(GL_STENCIL_BUFFER_BIT);
+    didModifyStencil = true;
+}
+
 TextureMapperGL::TextureMapperGL()
     : m_data(new TextureMapperGLData)
     , m_context(0)
@@ -245,6 +303,9 @@
     data().didModifyStencil = false;
     glDepthMask(0);
     glGetIntegerv(GL_VIEWPORT, data().viewport);
+    glGetIntegerv(GL_SCISSOR_BOX, data().previousScissor);
+    data().sharedGLData().clipState.stencilIndex = 1;
+    data().sharedGLData().clipState.scissorBox = IntRect(0, 0, data().viewport[2], data().viewport[3]);
     bindSurface(0);
 }
 
@@ -256,6 +317,8 @@
     }
 
     glUseProgram(data().previousProgram);
+
+    glScissor(data().previousScissor[0], data().previousScissor[1], data().previousScissor[2], data().previousScissor[3]);
     if (data().previousScissorState)
         glEnable(GL_SCISSOR_TEST);
     else
@@ -266,6 +329,7 @@
     else
         glDisable(GL_DEPTH_TEST);
 
+
 #if PLATFORM(QT)
     if (!m_context)
         return;
@@ -280,6 +344,10 @@
 {
     if (!texture.isValid())
         return;
+
+    if (data().sharedGLData().clipState.scissorBox.isEmpty())
+        return;
+
     const BitmapTextureGL& textureGL = static_cast<const BitmapTextureGL&>(texture);
     drawTexture(textureGL.id(), textureGL.isOpaque() ? 0 : SupportsBlending, textureGL.relativeSize(), targetRect, matrix, opacity, mask);
 }
@@ -532,36 +600,40 @@
                                 -1, flip ? 1 : -1, -(far + near) / (far - near), 1);
 }
 
+void BitmapTextureGL::initializeStencil()
+{
+    if (m_rbo)
+        return;
+    GL_CMD(glGenRenderbuffers(1, &m_rbo));
+    GL_CMD(glBindRenderbuffer(GL_RENDERBUFFER, m_rbo))
+#ifdef TEXMAP_OPENGL_ES_2
+    GL_CMD(glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, m_textureSize.width(), m_textureSize.height()))
+#else
+    GL_CMD(glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_STENCIL, m_textureSize.width(), m_textureSize.height()))
+#endif
+    GL_CMD(glBindRenderbuffer(GL_RENDERBUFFER, 0))
+    GL_CMD(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, m_rbo))
+    GL_CMD(glClearStencil(0))
+    GL_CMD(glClear(GL_STENCIL_BUFFER_BIT))
+}
+
 void BitmapTextureGL::bind()
 {
-    int& stencilIndex = m_textureMapper->data().sharedGLData().stencilIndex;
     if (m_surfaceNeedsReset || !m_fbo) {
         if (!m_fbo)
             GL_CMD(glGenFramebuffers(1, &m_fbo))
-        if (!m_rbo)
-            GL_CMD(glGenRenderbuffers(1, &m_rbo));
-        GL_CMD(glBindRenderbuffer(GL_RENDERBUFFER, m_rbo))
-#ifdef TEXMAP_OPENGL_ES_2
-        GL_CMD(glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, m_textureSize.width(), m_textureSize.height()))
-#else
-        GL_CMD(glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_STENCIL, m_textureSize.width(), m_textureSize.height()))
-#endif
         GL_CMD(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo))
         GL_CMD(glBindTexture(GL_TEXTURE_2D, 0))
-        GL_CMD(glBindRenderbuffer(GL_RENDERBUFFER, 0))
         GL_CMD(glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, id(), 0))
-        GL_CMD(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, m_rbo))
         GL_CMD(glClearColor(0, 0, 0, 0))
-        GL_CMD(glClearStencil(stencilIndex - 1))
-        GL_CMD(glClear(GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT))
+        GL_CMD(glClear(GL_COLOR_BUFFER_BIT))
         m_surfaceNeedsReset = false;
     } else
         GL_CMD(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo))
 
-    glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
-    glStencilFunc(stencilIndex > 1 ? GL_GEQUAL : GL_ALWAYS, stencilIndex - 1, stencilIndex - 1);
     GL_CMD(glViewport(0, 0, size().width(), size().height()))
     m_textureMapper->data().projectionMatrix = createProjectionMatrix(size(), false);
+    m_textureMapper->beginClip(TransformationMatrix(), FloatRect(IntPoint::zero(), contentSize()));
 }
 
 void BitmapTextureGL::destroy()
@@ -576,6 +648,7 @@
         GL_CMD(glDeleteRenderbuffers(1, &m_rbo))
 
     m_fbo = 0;
+    m_rbo = 0;
     m_id = 0;
     m_textureSize = IntSize();
     m_relativeSize = FloatSize(1, 1);
@@ -604,71 +677,41 @@
         IntSize viewportSize(data().viewport[2], data().viewport[3]);
         GL_CMD(glBindFramebuffer(GL_FRAMEBUFFER, 0))
         data().projectionMatrix = createProjectionMatrix(viewportSize, true);
-        GL_CMD(glStencilFunc(data().sharedGLData().stencilIndex > 1 ? GL_EQUAL : GL_ALWAYS, data().sharedGLData().stencilIndex - 1, data().sharedGLData().stencilIndex - 1))
-        GL_CMD(glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP))
         GL_CMD(glViewport(0, 0, viewportSize.width(), viewportSize.height()))
+        if (data().currentSurface)
+            endClip();
+        data().currentSurface.clear();
         return;
     }
 
+
     surface->bind();
+    data().currentSurface = surface;
 }
 
-static void scissorClip(const IntRect& rect)
-{
-    GLint viewport[4];
-    glGetIntegerv(GL_VIEWPORT, viewport);
-    glScissor(rect.x(), viewport[3] - rect.maxY() + 1, rect.width() - 1, rect.height() - 1);
-}
-
 bool TextureMapperGL::beginScissorClip(const TransformationMatrix& modelViewMatrix, const FloatRect& targetRect)
 {
     FloatQuad quad = modelViewMatrix.projectQuad(targetRect);
     IntRect rect = quad.enclosingBoundingBox();
 
     // Only use scissors on rectilinear clips.
-    if (!quad.isRectilinear() || rect.isEmpty()) {
-        data().sharedGLData().clipStack.append(IntRect());
+    if (!quad.isRectilinear() || rect.isEmpty())
         return false;
-    }
 
-    // Intersect with previous clip.
-    for (int i = data().sharedGLData().clipStack.size() - 1; i >= 0; --i) {
-        const IntRect& prevRect = data().sharedGLData().clipStack[i];
-        if (prevRect.isEmpty())
-            continue;
-
-        // We only need the last valid clip.
-        rect.intersect(prevRect);
-        break;
-    }
-
-    scissorClip(rect);
-    data().sharedGLData().clipStack.append(rect);
-
+    data().sharedGLData().clipState.scissorBox.intersect(rect);
+    data().sharedGLData().applyCurrentClip();
     return true;
 }
 
-bool TextureMapperGL::endScissorClip()
-{
-    data().sharedGLData().clipStack.removeLast();
-    ASSERT(!data().sharedGLData().clipStack.isEmpty());
-
-    IntRect rect = data().sharedGLData().clipStack.last();
-    if (rect.isEmpty())
-        return false;
-
-    scissorClip(rect);
-    return true;
-}
-
 void TextureMapperGL::beginClip(const TransformationMatrix& modelViewMatrix, const FloatRect& targetRect)
 {
+    data().sharedGLData().pushClipState();
     if (beginScissorClip(modelViewMatrix, targetRect))
         return;
 
-    data().initStencil();
+    data().initializeStencil();
 
-    RefPtr<TextureMapperShaderProgramClip> shaderInfo = data().sharedGLData().textureMapperShaderManager.getShaderProgram<TextureMapperShaderProgramClip>();
+    RefPtr<TextureMapperShaderProgramSimple> shaderInfo = data().sharedGLData().textureMapperShaderManager.getShaderProgram<TextureMapperShaderProgramSimple>();
 
     GL_CMD(glUseProgram(shaderInfo->id()))
     GL_CMD(glEnableVertexAttribArray(shaderInfo->vertexAttrib()))
@@ -689,32 +732,46 @@
         matrix.m41(), matrix.m42(), matrix.m43(), matrix.m44()
     };
 
-    int& stencilIndex = data().sharedGLData().stencilIndex;
+    const GLfloat m4all[] = {
+        2, 0, 0, 0,
+        0, 2, 0, 0,
+        0, 0, 1, 0,
+        -1, -1, 0, 1
+    };
 
-    GL_CMD(glUniformMatrix4fv(shaderInfo->matrixVariable(), 1, GL_FALSE, m4))
+    int& stencilIndex = data().sharedGLData().clipState.stencilIndex;
+
     GL_CMD(glEnable(GL_STENCIL_TEST))
+
+    // Make sure we don't do any actual drawing.
     GL_CMD(glStencilFunc(GL_NEVER, stencilIndex, stencilIndex))
-    GL_CMD(glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE))
+
+    // Operate only on the stencilIndex and above.
     GL_CMD(glStencilMask(0xff & ~(stencilIndex - 1)))
+
+    // First clear the entire buffer at the current index.
+    GL_CMD(glUniformMatrix4fv(shaderInfo->matrixVariable(), 1, GL_FALSE, m4all))
+    GL_CMD(glStencilOp(GL_ZERO, GL_ZERO, GL_ZERO))
     GL_CMD(glDrawArrays(GL_TRIANGLE_FAN, 0, 4))
-    GL_CMD(glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP))
-    stencilIndex <<= 1;
-    glStencilFunc(stencilIndex > 1 ? GL_EQUAL : GL_ALWAYS, stencilIndex - 1, stencilIndex - 1);
+
+    // Now apply the current index to the new quad.
+    GL_CMD(glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE))
+    GL_CMD(glUniformMatrix4fv(shaderInfo->matrixVariable(), 1, GL_FALSE, m4))
+    GL_CMD(glDrawArrays(GL_TRIANGLE_FAN, 0, 4))
+
+    // Clear the state.
     GL_CMD(glDisableVertexAttribArray(shaderInfo->vertexAttrib()))
+    GL_CMD(glStencilMask(0))
+
+    // Increase stencilIndex and apply stencil testing.
+    stencilIndex *= 2;
+    data().sharedGLData().applyCurrentClip();
 }
 
 void TextureMapperGL::endClip()
 {
-    if (endScissorClip())
-        return;
-
-    data().sharedGLData().stencilIndex >>= 1;
-    glStencilFunc(data().sharedGLData().stencilIndex > 1 ? GL_EQUAL : GL_ALWAYS, data().sharedGLData().stencilIndex - 1, data().sharedGLData().stencilIndex - 1);    
-
-    // After we've cleared the last non-rectalinear clip, we disable the stencil test.
-    if (data().sharedGLData().stencilIndex == 1)
-        GL_CMD(glDisable(GL_STENCIL_TEST))
-
+    data().sharedGLData().popClipState();
+    data().sharedGLData().applyCurrentClip();
 }
 
 PassRefPtr<BitmapTexture> TextureMapperGL::createTexture()

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.h (108695 => 108696)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.h	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.h	2012-02-24 00:24:40 UTC (rev 108696)
@@ -67,7 +67,6 @@
 
 private:
     bool beginScissorClip(const TransformationMatrix&, const FloatRect&);
-    bool endScissorClip();
     inline TextureMapperGLData& data() { return *m_data; }
     TextureMapperGLData* m_data;
     GraphicsContext* m_context;

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp (108695 => 108696)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-02-24 00:24:40 UTC (rev 108696)
@@ -180,9 +180,9 @@
     if (m_children.isEmpty())
         return;
 
-    bool shouldClip = m_state.masksToBounds || m_state.maskLayer;
+    bool shouldClip = m_state.masksToBounds && !m_state.preserves3D;
     if (shouldClip)
-        options.textureMapper->beginClip(TransformationMatrix(options.transform).multiply(m_transform.combined()), FloatRect(0, 0, m_size.width(), m_size.height()));
+        options.textureMapper->beginClip(TransformationMatrix(options.transform).multiply(m_transform.combined()), layerRect());
 
     for (int i = 0; i < m_children.size(); ++i)
         m_children[i]->paintRecursive(options);

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp (108695 => 108696)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.cpp	2012-02-24 00:24:40 UTC (rev 108696)
@@ -89,24 +89,7 @@
             gl_Position = InMatrix * InVertex;
         }
     );
-static const char* fragmentShaderSourceClip =
-    FRAGMENT_SHADER(
-        void main(void)
-        {
-            gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
-        }
-    );
 
-static const char* vertexShaderSourceClip =
-    VERTEX_SHADER(
-        uniform mat4 InMatrix;
-        attribute vec4 InVertex;
-        void main(void)
-        {
-            gl_Position = InMatrix * InVertex;
-        }
-    );
-
 void TextureMapperShaderProgram::initializeProgram()
 {
     const char* vertexShaderSourceProgram = vertexShaderSource();
@@ -197,27 +180,6 @@
     return fragmentShaderSourceOpacityAndMask;
 }
 
-PassRefPtr<TextureMapperShaderProgramClip> TextureMapperShaderProgramClip::create()
-{
-    return adoptRef(new TextureMapperShaderProgramClip());
-}
-
-TextureMapperShaderProgramClip::TextureMapperShaderProgramClip()
-{
-    initializeProgram();
-    getUniformLocation(m_matrixVariable, "InMatrix");
-}
-
-const char* TextureMapperShaderProgramClip::vertexShaderSource()
-{
-    return vertexShaderSourceClip;
-}
-
-const char* TextureMapperShaderProgramClip::fragmentShaderSource()
-{
-    return fragmentShaderSourceClip;
-}
-
 TextureMapperShaderManager::TextureMapperShaderManager()
 {
     ASSERT(initializeOpenGLShims());

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.h (108695 => 108696)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.h	2012-02-24 00:18:28 UTC (rev 108695)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.h	2012-02-24 00:24:40 UTC (rev 108696)
@@ -104,18 +104,6 @@
     GLint m_opacityVariable;
 };
 
-class TextureMapperShaderProgramClip : public TextureMapperShaderProgram {
-public:
-    static PassRefPtr<TextureMapperShaderProgramClip> create();
-    GLint matrixVariable() { return m_matrixVariable; }
-
-private:
-    virtual const char* vertexShaderSource();
-    virtual const char* fragmentShaderSource();
-    TextureMapperShaderProgramClip();
-    GLint m_matrixVariable;
-};
-
 class TextureMapperShaderManager {
 public:
     TextureMapperShaderManager();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to