2010-04-23 Zhenyao Mo <zmo@google.com>
[WebKit-https.git] / WebKit / chromium / src / GraphicsContext3D.cpp
index ecd6621..dd7e5e6 100644 (file)
@@ -111,7 +111,7 @@ public:
     void beginPaint(WebGLRenderingContext* context);
     void endPaint();
 
-    bool isGLES2Compliant();
+    bool isGLES2Compliant() const;
 
     //----------------------------------------------------------------------
     // Entry points for WebGL.
@@ -619,7 +619,10 @@ rt GraphicsContext3DInternal::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7
 DELEGATE_TO_IMPL_R(makeContextCurrent, bool)
 DELEGATE_TO_IMPL_1R(sizeInBytes, int, int)
 
-DELEGATE_TO_IMPL_R(isGLES2Compliant, bool)
+bool GraphicsContext3DInternal::isGLES2Compliant() const
+{
+    return m_impl->isGLES2Compliant();
+}
 
 DELEGATE_TO_IMPL_1(activeTexture, unsigned long)
 DELEGATE_TO_IMPL_2_X12(attachShader, WebGLProgram*, WebGLShader*)
@@ -1294,7 +1297,11 @@ DELEGATE_TO_INTERNAL_1(deleteShader, unsigned)
 DELEGATE_TO_INTERNAL_1(deleteTexture, unsigned)
 
 DELEGATE_TO_INTERNAL_1(synthesizeGLError, unsigned long)
-DELEGATE_TO_INTERNAL_R(isGLES2Compliant, bool)
+
+bool GraphicsContext3D::isGLES2Compliant() const
+{
+    return m_internal->isGLES2Compliant();
+}
 
 } // namespace WebCore